Comparison

net/server_epoll.lua @ 11497:960674938665

net.server_epoll: Remove unnecessary luacheck annotations Not sure why these were here to begin with, since it does use the 'self' argument and did so since they were added.
author Kim Alvefur <zash@zash.se>
date Thu, 01 Apr 2021 12:30:55 +0200
parent 11413:9fb23779c863
child 11592:64cfa396bb84
comparison
equal deleted inserted replaced
11496:8bf632540197 11497:960674938665
177 end 177 end
178 return ("FD %d"):format(self:getfd()); 178 return ("FD %d"):format(self:getfd());
179 end 179 end
180 180
181 interface.log = log; 181 interface.log = log;
182 function interface:debug(msg, ...) --luacheck: ignore 212/self 182 function interface:debug(msg, ...)
183 self.log("debug", msg, ...); 183 self.log("debug", msg, ...);
184 end 184 end
185 185
186 interface.noise = interface.debug; 186 interface.noise = interface.debug;
187 function interface:noise(msg, ...) --luacheck: ignore 212/self 187 function interface:noise(msg, ...)
188 if cfg.verbose then 188 if cfg.verbose then
189 return self:debug(msg, ...); 189 return self:debug(msg, ...);
190 end 190 end
191 end 191 end
192 192
193 function interface:error(msg, ...) --luacheck: ignore 212/self 193 function interface:error(msg, ...)
194 self.log("error", msg, ...); 194 self.log("error", msg, ...);
195 end 195 end
196 196
197 -- Replace the listener and tell the old one 197 -- Replace the listener and tell the old one
198 function interface:setlistener(listeners, data) 198 function interface:setlistener(listeners, data)