]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/files/default/plugins/api_calls_num
Update rubocop and fix new warnings
[chef.git] / cookbooks / munin / files / default / plugins / api_calls_num
index b1d45422845e37eee924aa028819403d79baac3c..1c3a28e05536c1ceec46c453830e18983199bb0b 100755 (executable)
@@ -64,7 +64,7 @@ else
   delta_t = (max_time - min_time).to_f * 24 * 60
   counts = lines
            .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