Diff

core/moduleapi.lua @ 13016:8aec903ea888

moduleapi: Add luacheck annotation to suppress warning about unused self This is a convenience function, and there is currently no module-specific code required to implement it. Not using 'self' is to be expected.
author Matthew Wild <mwild1@gmail.com>
date Sat, 01 Apr 2023 12:30:29 +0100
parent 13015:46c05c2e34f7
child 13201:65fb0d7a2312
line wrap: on
line diff
--- a/core/moduleapi.lua	Sat Apr 01 11:59:50 2023 +0100
+++ b/core/moduleapi.lua	Sat Apr 01 12:30:29 2023 +0100
@@ -694,7 +694,7 @@
 end
 
 -- Execute a function, once, but only after startup is complete
-function api:once(f)
+function api:once(f) --luacheck: ignore 212/self
 	return prosody.started:next(f);
 end