Skip to content

Commit

Permalink
Use local variable instead of duplicate method call
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Jun 30, 2020
1 parent cfc5ee1 commit c7fdab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sequel/model/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ def ===(obj)
when nil
return false
when Array
return false if pk.any?(&:nil?)
return false if pkv.any?(&:nil?)
end

(obj.class == model) && (obj.pk == pkv)
Expand Down

0 comments on commit c7fdab6

Please sign in to comment.