Commit 6a97a74f authored by antirez's avatar antirez
Browse files

Redis-rb minor bool convertion fix

parent 69664139
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment