deprecate 'Hash.new' for '{}'

This commit is contained in:
Scott Schneider 2015-02-25 17:26:33 -08:00
parent 2fa7e1e736
commit c66315ce26

View file

@ -51,7 +51,7 @@ module Vmpooler
get '/dashboard/stats/vmpooler/pool/?' do
content_type :json
result = Hash.new
result = {}
$config[:pools].each do |pool|
result[pool['name']] ||= Hash.new
@ -106,7 +106,7 @@ module Vmpooler
get '/dashboard/stats/vmpooler/running/?' do
content_type :json
result = Hash.new
result = {}
$config[:pools].each do |pool|
running = $redis.scard('vmpooler__running__' + pool['name'])