Redis-rb minor bool convertion fix

This commit is contained in:
antirez 2009-05-29 12:52:21 +02:00
parent 69664139b5
commit 6a97a74f5e

View File

@ -20,13 +20,7 @@ class Redis
"echo"=>true, "getset"=>true, "smove"=>true
}
ConvertToBool = lambda do |r|
case r
when 0 then false
when 1 then true
else r
end
end
ConvertToBool = lambda{|r| r == 0 ? false : r}
ReplyProcessor = {
"exists" => ConvertToBool,