Mercurial > prosody-hg
diff util/iterators.lua @ 8389:5d866eb8f18f
util: Ignore some Lua 5.1 vs 5.2 compat things [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 10 Nov 2017 17:47:11 +0100 |
| parents | 4b4cf0167391 |
| children | 7b621a4a2e8d |
line wrap: on
line diff
--- a/util/iterators.lua Thu Nov 09 17:27:52 2017 +0100 +++ b/util/iterators.lua Fri Nov 10 17:47:11 2017 +0100 @@ -12,8 +12,8 @@ local t_insert = table.insert; local select, next = select, next; -local unpack = table.unpack or unpack; --luacheck: ignore 113 -local pack = table.pack or function (...) return { n = select("#", ...), ... }; end +local unpack = table.unpack or unpack; --luacheck: ignore 113 143 +local pack = table.pack or function (...) return { n = select("#", ...), ... }; end -- luacheck: ignore 143 -- Reverse an iterator function it.reverse(f, s, var)
