aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils/hash.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils/hash.rb b/Library/Homebrew/utils/hash.rb
index 63dd02c1a..2281ce311 100644
--- a/Library/Homebrew/utils/hash.rb
+++ b/Library/Homebrew/utils/hash.rb
@@ -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