mod_proxy65: Fix all warnings from luacheck

This commit is contained in:
Matthew Wild 2018-03-21 22:13:11 +00:00
parent 8a86a05126
commit 1b20db5bd0

View file

@ -71,7 +71,7 @@ function listener.onincoming(conn, data)
end end
end end
function listener.ondisconnect(conn, err) function listener.ondisconnect(conn)
local session = sessions[conn]; local session = sessions[conn];
if session then if session then
if transfers[session.sha] then if transfers[session.sha] then
@ -109,7 +109,8 @@ function module.add_host(module)
local origin, stanza = event.origin, event.stanza; local origin, stanza = event.origin, event.stanza;
-- check ACL -- check ACL
while proxy_acl and #proxy_acl > 0 do -- using 'while' instead of 'if' so we can break out of it -- using 'while' instead of 'if' so we can break out of it
while proxy_acl and #proxy_acl > 0 do --luacheck: ignore 512
local jid = stanza.attr.from; local jid = stanza.attr.from;
local allow; local allow;
for _, acl in ipairs(proxy_acl) do for _, acl in ipairs(proxy_acl) do