diff options
author | Matthew Wild <mwild1@gmail.com> | 2016-03-10 17:48:53 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2016-03-10 17:48:53 +0000 |
commit | 76c4635d44029aeb68c45b24c5d73ba4501b71ee (patch) | |
tree | 4f91ac59d69219c18a3d77d813be28d625afb03c /util/iterators.lua | |
parent | 834a9acae5155441e73711cf7b685b14e29b4855 (diff) | |
download | prosody-76c4635d44029aeb68c45b24c5d73ba4501b71ee.tar.gz prosody-76c4635d44029aeb68c45b24c5d73ba4501b71ee.zip |
util.iterators: Don't replace var, as we should preserve var from the original iterator [luacheck]
Diffstat (limited to 'util/iterators.lua')
-rw-r--r-- | util/iterators.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/iterators.lua b/util/iterators.lua index 868ba786..92f75189 100644 --- a/util/iterators.lua +++ b/util/iterators.lua @@ -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 |