mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
return value is never tested, so stop calling presence
This commit is contained in:
parent
8aa7b8695d
commit
b942ae836e
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ module ActiveSupport #:nodoc:
|
|||
|
||||
def load_dependency(file)
|
||||
if Dependencies.load?
|
||||
Dependencies.new_constants_in(Object) { yield }.presence
|
||||
Dependencies.new_constants_in(Object) { yield }
|
||||
else
|
||||
yield
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue