Skip to content

Commit

Permalink
ret is not always an array
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelser committed Apr 13, 2015
1 parent f0977c8 commit bb6762b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/suo/client/redis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def set(key, newval, _)
multi.set(key, newval)
end

ret[0] == "OK"
ret && ret[0] == "OK"
end

def synchronize(key)
Expand Down

0 comments on commit bb6762b

Please sign in to comment.