aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/dependencies.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-10-31 01:47:35 -0400
committerGitHub <noreply@github.com>2017-10-31 01:47:35 -0400
commita8ebd48559bea8893aa299f9e27758da0807ef24 (patch)
treeb0ef2612159498f9cb9d540fb4982b8d664ca714 /activesupport/lib/active_support/dependencies.rb
parent2240d4439910232ff6ad906edc03bed9bbe2001a (diff)
parentc40b4428e6d3885a8adc0ceba3aeac7599c14879 (diff)
downloadrails-a8ebd48559bea8893aa299f9e27758da0807ef24.tar.gz
rails-a8ebd48559bea8893aa299f9e27758da0807ef24.tar.bz2
rails-a8ebd48559bea8893aa299f9e27758da0807ef24.zip
Merge pull request #31004 from shuheiktgw/remove_unnecessary_returns
Remove redundant return statements
Diffstat (limited to 'activesupport/lib/active_support/dependencies.rb')
-rw-r--r--activesupport/lib/active_support/dependencies.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb
index 649b900187..82c10b3079 100644
--- a/activesupport/lib/active_support/dependencies.rb
+++ b/activesupport/lib/active_support/dependencies.rb
@@ -615,7 +615,7 @@ module ActiveSupport #:nodoc:
return false if desc.is_a?(Module) && desc.anonymous?
name = to_constant_name desc
return false unless qualified_const_defined?(name)
- return autoloaded_constants.include?(name)
+ autoloaded_constants.include?(name)
end
# Will the provided constant descriptor be unloaded?