Commit 5688a64b authored by Rajko Albrecht's avatar Rajko Albrecht

remove useless variable assignment

parent 0905bd28
......@@ -5,7 +5,8 @@ class Redis
module Cas
def cas key, ttl=nil
res = watch(key) do
watch(key) do
value = get(key)
break false if value.nil?
value = yield value
......@@ -14,7 +15,6 @@ class Redis
end
return_value ires
end
res
end
def cas_multi keys, ttl=nil
......
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