Skip to content

Commit aff1b8d

Browse files
committedNov 10, 2012
except nil in redis status info.
1 parent 529f5f1 commit aff1b8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/redis.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def info(cmd = nil)
181181
if reply.kind_of?(String)
182182
reply = Hash[reply.split("\r\n").map do |line|
183183
line.split(":", 2) unless line =~ /^(#|$)/
184-
end]
184+
end.compact]
185185

186186
if cmd && cmd.to_s == "commandstats"
187187
# Extract nested hashes for INFO COMMANDSTATS

0 commit comments

Comments
 (0)
Please sign in to comment.