X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/069e33163e0b09a7d647a98c2fde284a16a43b99..f9a223297545b98090c533f10991d60334087fcb:/cookbooks/munin/files/default/plugins/api_calls_ diff --git a/cookbooks/munin/files/default/plugins/api_calls_ b/cookbooks/munin/files/default/plugins/api_calls_ index 58797b833..689f5120c 100755 --- a/cookbooks/munin/files/default/plugins/api_calls_ +++ b/cookbooks/munin/files/default/plugins/api_calls_ @@ -54,7 +54,7 @@ if ARGV[0] == 'config' else counts = uris_from_status(server) .collect { |x| categorise_uri(x) } - .each_with_object(Hash.new) do |h, e| + .each_with_object({}) do |h, e| if h.key? e h[e] += 1 else