mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Remove explicit return and avoid creating local var.
This commit is contained in:
committed by
Aaron Patterson
parent
1b531b7ee2
commit
63c9185b62
@@ -112,8 +112,7 @@ module ActiveRecord
|
||||
end
|
||||
|
||||
def we_can_set_the_inverse_on_this?(record)
|
||||
inverse = @reflection.inverse_of
|
||||
return !inverse.nil?
|
||||
!@reflection.inverse_of.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user