1
0
Fork 0
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:
Aaron Patterson 2011-12-05 18:36:08 -08:00
parent 8aa7b8695d
commit b942ae836e

View file

@ -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