diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-10-31 01:47:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-31 01:47:35 -0400 |
commit | a8ebd48559bea8893aa299f9e27758da0807ef24 (patch) | |
tree | b0ef2612159498f9cb9d540fb4982b8d664ca714 /activesupport/lib/active_support/concern.rb | |
parent | 2240d4439910232ff6ad906edc03bed9bbe2001a (diff) | |
parent | c40b4428e6d3885a8adc0ceba3aeac7599c14879 (diff) | |
download | rails-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/concern.rb')
-rw-r--r-- | activesupport/lib/active_support/concern.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/concern.rb b/activesupport/lib/active_support/concern.rb index 32b5ca986b..b0a0d845e5 100644 --- a/activesupport/lib/active_support/concern.rb +++ b/activesupport/lib/active_support/concern.rb @@ -113,7 +113,7 @@ module ActiveSupport def append_features(base) if base.instance_variable_defined?(:@_dependencies) base.instance_variable_get(:@_dependencies) << self - return false + false else return false if base < self @_dependencies.each { |dep| base.include(dep) } |