# HG changeset patch # User Kim Alvefur # Date 1480849096 -3600 # Node ID 69706084bdfe391f0840ca5f333931178def138e # Parent 437fb77e5dedc59bd295e86bf0f4b0adc8002a6b net.websocket: Ignore unused argument warnings [luacheck] diff -r 437fb77e5ded -r 69706084bdfe net/websocket.lua --- a/net/websocket.lua Thu Dec 01 10:02:57 2016 +0100 +++ b/net/websocket.lua Sun Dec 04 11:58:16 2016 +0100 @@ -44,7 +44,7 @@ return false end -function websocket_listeners.onincoming(handler, buffer, err) +function websocket_listeners.onincoming(handler, buffer, err) -- luacheck: ignore 212/err local s = websockets[handler]; s.readbuffer = s.readbuffer..buffer; while true do @@ -123,7 +123,7 @@ end local websocket_methods = {}; -local function close_timeout_cb(now, timerid, s) +local function close_timeout_cb(now, timerid, s) -- luacheck: ignore 212/now 212/timerid s.close_timer = nil; log("warn", "Close timeout waiting for server to close, closing manually."); s.handler:close(); @@ -232,7 +232,7 @@ }, websocket_metatable); local http_url = url:gsub("^(ws)", "http"); - local http_req = http.request(http_url, { + local http_req = http.request(http_url, { -- luacheck: ignore 211/http_req method = "GET"; headers = headers; sslctx = ex.sslctx;