1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove redundant returning object

`object.transform_values!` returns `object` itself.
This commit is contained in:
Ryuta Kamizono 2019-02-09 05:19:20 +09:00
parent bb17528769
commit 50e4fda0a5

View file

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