# HG changeset patch # User Kim Alvefur # Date 1443194746 -7200 # Node ID 626d8152b1ad833f5a10de74cd93bbf39b023e5d # Parent 1f1bed8ebc411ed2bc8123c2279a4097ed948e48 server_event: Add luacheck annotations diff -r 1f1bed8ebc41 -r 626d8152b1ad net/server_event.lua --- a/net/server_event.lua Fri Sep 25 17:12:55 2015 +0200 +++ b/net/server_event.lua Fri Sep 25 17:25:46 2015 +0200 @@ -11,6 +11,7 @@ -- when using luasec, there are 4 cases of timeout errors: wantread or wantwrite during reading or writing --]] +-- luacheck: ignore 212/self 431/err 211/ret local SCRIPT_NAME = "server_event.lua" local SCRIPT_VERSION = "0.05" @@ -365,7 +366,7 @@ return self._pattern; end -function interface_mt:set_send(new_send) +function interface_mt:set_send(new_send) -- luacheck: ignore 212 -- No-op, we always use the underlying connection's send end