moduleapi: Add luacheck annotation to suppress warning about unused self
authorMatthew Wild <mwild1@gmail.com>
Sat, 01 Apr 2023 12:30:29 +0100
changeset 13020 8aec903ea888
parent 13019 46c05c2e34f7
child 13021 94f8fce2d99b
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.
core/moduleapi.lua
--- 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