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

Redis-rb minor bool convertion fix

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