diff options
| author | Baptiste Fontaine | 2015-12-21 13:33:03 +0100 |
|---|---|---|
| committer | Baptiste Fontaine | 2015-12-26 22:58:26 +0100 |
| commit | 48681c3f3a562709dcc1c3256df97ff747fae4d8 (patch) | |
| tree | 387b66dab7e5c9f96a0a0773511e287638aa11fa /Library/Homebrew/utils | |
| parent | d09698f19f3a57ce00baddc6142aa484d7d908f6 (diff) | |
| download | brew-48681c3f3a562709dcc1c3256df97ff747fae4d8.tar.bz2 | |
minor perf improvements
Closes Homebrew/homebrew#47224.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Diffstat (limited to 'Library/Homebrew/utils')
| -rw-r--r-- | Library/Homebrew/utils/json.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/json.rb b/Library/Homebrew/utils/json.rb index 8a8cb6847..7fe73d22c 100644 --- a/Library/Homebrew/utils/json.rb +++ b/Library/Homebrew/utils/json.rb @@ -24,7 +24,8 @@ module Utils obj.inject({}) do |result, (key, val)| key = key.respond_to?(:to_s) ? key.to_s : key val = stringify_keys(val) - result.merge!(key => val) + result[key] = val + result end else obj |
