aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2016-03-10 17:49:46 +0000
committerMatthew Wild <mwild1@gmail.com>2016-03-10 17:49:46 +0000
commita755aae795ef60f69f68ca774dd03fb1e5986425 (patch)
tree4a951a407aa7fd361dc674fdb6a26c60b3d0576c
parent76c4635d44029aeb68c45b24c5d73ba4501b71ee (diff)
downloadprosody-a755aae795ef60f69f68ca774dd03fb1e5986425.tar.gz
prosody-a755aae795ef60f69f68ca774dd03fb1e5986425.zip
util.iterators: Return initial var from upstream iterator [luacheck]
-rw-r--r--util/iterators.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/iterators.lua b/util/iterators.lua
index 92f75189..99b5f090 100644
--- a/util/iterators.lua
+++ b/util/iterators.lua
@@ -93,7 +93,7 @@ function it.head(n, f, s, var)
end
c = c + 1;
return f(s, var);
- end, s;
+ end, s, var;
end
-- Skip the first n items an iterator returns