Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

first always returns array

#189

It seems as though any call to first with a limit of 1 returns an array rather than a single object or nil. Is this the

desired behaviour? It's certainly not what I would have expected.

Looking at the code, it seems there intention was always to return one result but that isn't actually happening. Here's a possible fix.

Reported by ronin-13570 (at lighthouseapp) · February 14th, 2008 @ 04:42 PM

State: resolved
Milestone: none
Assigned to: Chris Wanstrath Chris Wanstrath

Activity

  1. Chris Wanstrath
    Chris Wanstrath
    • State changed from new to resolved

    Fixed tonight. Thanks.

    February 16th, 2008 @ 03:10 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.