From: Daniel Westermann-Clark Date: Mon, 10 Apr 2006 21:24:17 +0000 (-0400) Subject: Cleanup X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=43493e7e3894007dae1a8f023c33ce51881838a9;p=dbsrgits%2FDBIx-Class-Historic.git Cleanup --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index a962af1..8d683e0 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -340,9 +340,10 @@ sub find { my $query = @unique_hashes ? \@unique_hashes : undef; if (keys %$attrs) { - my $rs = $self->search($query,$attrs); + my $rs = $self->search($query, $attrs); return keys %{$rs->{collapse}} ? $rs->next : $rs->single; - } else { + } + else { return keys %{$self->{collapse}} ? $self->search($query)->next : $self->single($query);