# HG changeset patch # User Matthew Wild # Date 1680348629 -3600 # Node ID 8aec903ea888348a725e001ced11573473d74e39 # Parent 46c05c2e34f783c52718378919d457e7af683402 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. diff -r 46c05c2e34f7 -r 8aec903ea888 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