aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2023-04-01 12:30:29 +0100
committerMatthew Wild <mwild1@gmail.com>2023-04-01 12:30:29 +0100
commit97d83f6c8f6978ac6eea22f3d414387f14ab39b9 (patch)
tree18912ad4d7121c5b5bb63020359d4acc9dab5222 /core
parent05c67040757bd1c8861caa03755609a42b504ecf (diff)
downloadprosody-97d83f6c8f6978ac6eea22f3d414387f14ab39b9.tar.gz
prosody-97d83f6c8f6978ac6eea22f3d414387f14ab39b9.zip
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.
Diffstat (limited to 'core')
-rw-r--r--core/moduleapi.lua2
1 files changed, 1 insertions, 1 deletions
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