aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-12-08 17:10:51 +0100
committerKim Alvefur <zash@zash.se>2018-12-08 17:10:51 +0100
commita8b096516b2ef1791bc348e18baa7e7f5399de8f (patch)
treed5b43fb99c2898721ab605e16478d773e7eba5ba
parent6dcf53f7b284f265ce3f2215e33c6f0c28be5ce9 (diff)
downloadprosody-a8b096516b2ef1791bc348e18baa7e7f5399de8f.tar.gz
prosody-a8b096516b2ef1791bc348e18baa7e7f5399de8f.zip
lint: Remove use of the 143 error code
Does not appear to be invoked by anything
-rw-r--r--net/websocket/frames.lua4
-rw-r--r--util/import.lua2
-rw-r--r--util/multitable.lua2
-rw-r--r--util/serialization.lua1
4 files changed, 4 insertions, 5 deletions
diff --git a/net/websocket/frames.lua b/net/websocket/frames.lua
index c3333020..86752109 100644
--- a/net/websocket/frames.lua
+++ b/net/websocket/frames.lua
@@ -22,8 +22,8 @@ local t_concat = table.concat;
local s_byte = string.byte;
local s_char= string.char;
local s_sub = string.sub;
-local s_pack = string.pack; -- luacheck: ignore 143
-local s_unpack = string.unpack; -- luacheck: ignore 143
+local s_pack = string.pack;
+local s_unpack = string.unpack;
if not s_pack and softreq"struct" then
s_pack = softreq"struct".pack;
diff --git a/util/import.lua b/util/import.lua
index 8ecfe43c..1007bc0a 100644
--- a/util/import.lua
+++ b/util/import.lua
@@ -8,7 +8,7 @@
-local unpack = table.unpack or unpack; --luacheck: ignore 113 143
+local unpack = table.unpack or unpack; --luacheck: ignore 113
local t_insert = table.insert;
function _G.import(module, ...)
local m = package.loaded[module] or require(module);
diff --git a/util/multitable.lua b/util/multitable.lua
index 8d32ed8a..4f2cd972 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 143
+local unpack = table.unpack or unpack; --luacheck: ignore 113
local _ENV = nil;
-- luacheck: std none
diff --git a/util/serialization.lua b/util/serialization.lua
index dd6a2a2b..7ae77a3a 100644
--- a/util/serialization.lua
+++ b/util/serialization.lua
@@ -20,7 +20,6 @@ local pcall = pcall;
local envload = require"util.envload".envload;
local pos_inf, neg_inf = math.huge, -math.huge;
--- luacheck: ignore 143/math
local m_type = math.type or function (n)
return n % 1 == 0 and n <= 9007199254740992 and n >= -9007199254740992 and "integer" or "float";
end;