mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.iterators: Fix use of incorrect variable accidentally introduced in a9ef93bc81d9
This commit is contained in:
parent
c00adb21f4
commit
6873a62f1e
1 changed files with 2 additions and 2 deletions
|
@ -135,8 +135,8 @@ function it.filter(filter, f, s, var)
|
|||
return function (_s, _var)
|
||||
local ret;
|
||||
repeat ret = pack(f(_s, _var));
|
||||
var = ret[1];
|
||||
until var == nil or filter(unpack(ret, 1, ret.n));
|
||||
_var = ret[1];
|
||||
until _var == nil or filter(unpack(ret, 1, ret.n));
|
||||
return unpack(ret, 1, ret.n);
|
||||
end, s, var;
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue