diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-02-09 05:19:20 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-02-09 05:19:20 +0900 |
commit | 50e4fda0a5ecef27f25785f0b261aa06ed55b9c5 (patch) | |
tree | f8d263f992214583c86c640bf5e2d3cf224b857a /activesupport/lib/active_support | |
parent | bb175287697768c7312c51f14dcc5b65b1d31fb8 (diff) | |
download | rails-50e4fda0a5ecef27f25785f0b261aa06ed55b9c5.tar.gz rails-50e4fda0a5ecef27f25785f0b261aa06ed55b9c5.tar.bz2 rails-50e4fda0a5ecef27f25785f0b261aa06ed55b9c5.zip |
Remove redundant returning `object`
`object.transform_values!` returns `object` itself.
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/hash/deep_transform_values.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/deep_transform_values.rb b/activesupport/lib/active_support/core_ext/hash/deep_transform_values.rb index 823313fb89..720a1f67c8 100644 --- a/activesupport/lib/active_support/core_ext/hash/deep_transform_values.rb +++ b/activesupport/lib/active_support/core_ext/hash/deep_transform_values.rb @@ -37,7 +37,6 @@ class Hash case object when Hash object.transform_values! { |value| _deep_transform_values_in_object!(value, &block) } - object when Array object.map! { |e| _deep_transform_values_in_object!(e, &block) } else |