mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
brew style --fix
This commit is contained in:
parent
80e8978f4d
commit
ab5f0c0fa5
@ -119,7 +119,7 @@ class Hash
|
|||||||
case object
|
case object
|
||||||
when Hash
|
when Hash
|
||||||
# We can't use `each_key` here because we're updating the hash in-place.
|
# We can't use `each_key` here because we're updating the hash in-place.
|
||||||
object.keys.each do |key| # rubocop:disable Style/HashEachMethods
|
object.keys.each do |key|
|
||||||
value = object.delete(key)
|
value = object.delete(key)
|
||||||
object[yield(key)] = _deep_transform_keys_in_object!(value, &block)
|
object[yield(key)] = _deep_transform_keys_in_object!(value, &block)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user