aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-12-26 23:00:38 +0100
committerBaptiste Fontaine2015-12-26 23:00:38 +0100
commit169b8fc03942397bd0f73bb008e915b834605cff (patch)
tree437c7421ae4bc9c0960a63d4e5a0632b729a4990 /Library/Homebrew/utils
parent48681c3f3a562709dcc1c3256df97ff747fae4d8 (diff)
downloadbrew-169b8fc03942397bd0f73bb008e915b834605cff.tar.bz2
Revert "minor perf improvements"
This reverts commit 16a2a8274a7808e63a6c78475e12a7c0ef5812ef.
Diffstat (limited to 'Library/Homebrew/utils')
-rw-r--r--Library/Homebrew/utils/json.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/utils/json.rb b/Library/Homebrew/utils/json.rb
index 7fe73d22c..8a8cb6847 100644
--- a/Library/Homebrew/utils/json.rb
+++ b/Library/Homebrew/utils/json.rb
@@ -24,8 +24,7 @@ module Utils
obj.inject({}) do |result, (key, val)|
key = key.respond_to?(:to_s) ? key.to_s : key
val = stringify_keys(val)
- result[key] = val
- result
+ result.merge!(key => val)
end
else
obj