mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
util.iterators: Don't replace var, as we should preserve var from the original iterator [luacheck]
This commit is contained in:
parent
b1279bc9a5
commit
e5d07c158f
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ end
|
|||
|
||||
-- Convert the values returned by an iterator to an array
|
||||
function it.to_array(f, s, var)
|
||||
local t, var = {};
|
||||
local t = {};
|
||||
while true do
|
||||
var = f(s, var);
|
||||
if var == nil then break; end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue