aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-11-10 17:47:11 +0100
committerKim Alvefur <zash@zash.se>2017-11-10 17:47:11 +0100
commit0251f343054715fd750860ad537fa16a0419df65 (patch)
tree105402674b1ad12890bdc6f3dcd12118ce57591f
parent86358dd5745829fbc998109eedecf3964203fa83 (diff)
downloadprosody-0251f343054715fd750860ad537fa16a0419df65.tar.gz
prosody-0251f343054715fd750860ad537fa16a0419df65.zip
util: Ignore some Lua 5.1 vs 5.2 compat things [luacheck]
-rw-r--r--util/import.lua2
-rw-r--r--util/iterators.lua4
-rw-r--r--util/multitable.lua2
-rw-r--r--util/sql.lua2
4 files changed, 5 insertions, 5 deletions
diff --git a/util/import.lua b/util/import.lua
index c2b9dce1..12d1957f 100644
--- a/util/import.lua
+++ b/util/import.lua
@@ -8,7 +8,7 @@
-local unpack = table.unpack or unpack; --luacheck: ignore 113
+local unpack = table.unpack or unpack; --luacheck: ignore 113 143
local t_insert = table.insert;
function import(module, ...)
local m = package.loaded[module] or require(module);
diff --git a/util/iterators.lua b/util/iterators.lua
index bd150ff2..a152e7be 100644
--- a/util/iterators.lua
+++ b/util/iterators.lua
@@ -12,8 +12,8 @@ local it = {};
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)
diff --git a/util/multitable.lua b/util/multitable.lua
index c472d731..b790dd7f 100644
--- a/util/multitable.lua
+++ b/util/multitable.lua
@@ -9,7 +9,7 @@
local select = select;
local t_insert = table.insert;
local pairs, next, type = pairs, next, type;
-local unpack = table.unpack or unpack; --luacheck: ignore 113
+local unpack = table.unpack or unpack; --luacheck: ignore 113 143
local _ENV = nil;
diff --git a/util/sql.lua b/util/sql.lua
index 1dd278eb..9648101a 100644
--- a/util/sql.lua
+++ b/util/sql.lua
@@ -1,6 +1,6 @@
local setmetatable, getmetatable = setmetatable, getmetatable;
-local ipairs, unpack, select = ipairs, table.unpack or unpack, select; --luacheck: ignore 113
+local ipairs, unpack, select = ipairs, table.unpack or unpack, select; --luacheck: ignore 113 143
local tostring = tostring;
local type = type;
local assert, pcall, xpcall, debug_traceback = assert, pcall, xpcall, debug.traceback;