Skip to content

Commit

Permalink
fix Issue #51
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Oct 30, 2013
1 parent ec0853b commit feb2efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lualib/redis.lua
Expand Up @@ -169,7 +169,7 @@ function command:batch(mode)
return allok
end
else
assert(not self.__mode and (mode == "read" or mode == "write"))
assert(mode == "read" or mode == "write")
socket.lock(self.__handle)
self.__mode = mode
self.__batch = 0
Expand Down

0 comments on commit feb2efd

Please sign in to comment.