From 97d83f6c8f6978ac6eea22f3d414387f14ab39b9 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 1 Apr 2023 12:30:29 +0100 Subject: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/moduleapi.lua b/core/moduleapi.lua index 8479284d..3ee8647f 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -694,7 +694,7 @@ function api:may(action, context, peek) 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 -- cgit v1.2.3