Skip to content

Commit

Permalink
Avoid global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jbochi committed Sep 25, 2014
1 parent 4408c3d commit 26245c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redis.lua
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ do
end

if not options.watch then
watch_keys = { }
local watch_keys = { }
for i, v in pairs(options) do
if tonumber(i) then
table.insert(watch_keys, v)
Expand Down

0 comments on commit 26245c4

Please sign in to comment.