utils/hash: fix Rubocop warnings.
This commit is contained in:
parent
6cfb841524
commit
1f2abbdd6e
@ -1,6 +1,6 @@
|
||||
def deep_merge_hashes(hash1, hash2)
|
||||
merger = proc do |key, v1, v2|
|
||||
if Hash === v1 && Hash === v2
|
||||
merger = proc do |_key, v1, v2|
|
||||
if v1.is_a?(Hash) && v2.is_a?(Hash)
|
||||
v1.merge v2, &merger
|
||||
else
|
||||
v2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user