Changeset

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 8387:7d61431e1aa6
children 8390:4c629fde768c
files util/import.lua util/iterators.lua util/multitable.lua util/sql.lua
diffstat 4 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/util/import.lua	Thu Nov 09 17:27:52 2017 +0100
+++ b/util/import.lua	Fri Nov 10 17:47:11 2017 +0100
@@ -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);
--- 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)
--- a/util/multitable.lua	Thu Nov 09 17:27:52 2017 +0100
+++ b/util/multitable.lua	Fri Nov 10 17:47:11 2017 +0100
@@ -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;
 
--- a/util/sql.lua	Thu Nov 09 17:27:52 2017 +0100
+++ b/util/sql.lua	Fri Nov 10 17:47:11 2017 +0100
@@ -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;