mod_bosh: Add annotations to ignore unused arguments [luacheck]
authorKim Alvefur <zash@zash.se>
Tue, 19 Apr 2016 16:00:04 +0000 (18:00 +0200)
committerKim Alvefur <zash@zash.se>
Tue, 19 Apr 2016 16:00:04 +0000 (18:00 +0200)
plugins/mod_bosh.lua

index 52841f0c6601edfeec95fb7ca967c08b0b3b08e5..5a5de78908e49282c9f6ffb28e36ce153ce48113 100644 (file)
@@ -199,7 +199,7 @@ function handle_POST(event)
        return tostring(close_reply) .. "\n";
 end
 
-function after_bosh_wait(now, request, session)
+function after_bosh_wait(now, request, session) -- luacheck: ignore 212
        if request.conn then
                session.send("");
        end
@@ -401,7 +401,7 @@ end
 
 local function handleerr(err) log("error", "Traceback[bosh]: %s", traceback(tostring(err), 2)); end
 
-function runner_callbacks:error(err)
+function runner_callbacks:error(err) -- luacheck: ignore 212/self
        return handleerr(err);
 end