mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 13:26:39 +00:00
Redistat::Summary.update_all returns nil instead
of false if supplied stats hash is empty
This commit is contained in:
@@ -6,7 +6,7 @@ module Redistat
|
||||
def self.update_all(key, stats = {}, depth_limit = nil)
|
||||
stats ||= {}
|
||||
depth_limit ||= key.depth
|
||||
return false if stats.size == 0
|
||||
return nil if stats.size == 0
|
||||
depths.each do |depth|
|
||||
update(key, stats, depth)
|
||||
break if depth == depth_limit
|
||||
|
||||
Reference in New Issue
Block a user