Software / code / prosody
Comparison
core/moduleapi.lua @ 7142:67226eaef97c
moduleapi: Silence luacheck warning about unused 'id' parameter
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 05 Feb 2016 00:10:27 +0000 |
| parent | 7141:362545c3f8bb |
| child | 7164:af26e8eb591f |
comparison
equal
deleted
inserted
replaced
| 7141:362545c3f8bb | 7142:67226eaef97c |
|---|---|
| 397 timer_methods.disarm = timer_methods.stop | 397 timer_methods.disarm = timer_methods.stop |
| 398 function timer_methods:reschedule(delay) | 398 function timer_methods:reschedule(delay) |
| 399 timer.reschedule(self.id, delay) | 399 timer.reschedule(self.id, delay) |
| 400 end | 400 end |
| 401 | 401 |
| 402 local function timer_callback(now, id, t) | 402 local function timer_callback(now, id, t) --luacheck: ignore 212/id |
| 403 if t.module_env.loaded == false then return; end | 403 if t.module_env.loaded == false then return; end |
| 404 return t.callback(now, unpack(t, 1, t.n)); | 404 return t.callback(now, unpack(t, 1, t.n)); |
| 405 end | 405 end |
| 406 | 406 |
| 407 function api:add_timer(delay, callback, ...) | 407 function api:add_timer(delay, callback, ...) |