diff options
author | Matthew Wild <mwild1@gmail.com> | 2023-12-08 15:37:13 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2023-12-08 15:37:13 +0000 |
commit | 9bd172682165f53c829167da76c8aa423b5df22e (patch) | |
tree | 505487f8b47cc80b0fa4412cbcd92a9c998b599f /core | |
parent | 7a288248f0f6ff804f360a2ef8485909e07404c9 (diff) | |
download | prosody-9bd172682165f53c829167da76c8aa423b5df22e.tar.gz prosody-9bd172682165f53c829167da76c8aa423b5df22e.zip |
configmanager: Fix linter issues
Diffstat (limited to 'core')
-rw-r--r-- | core/configmanager.lua | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/core/configmanager.lua b/core/configmanager.lua index 6f6a47da..bd12e169 100644 --- a/core/configmanager.lua +++ b/core/configmanager.lua @@ -146,7 +146,7 @@ do return it.values(self:value()); end; }, { - __index = function (t, k) + __index = function (t, k) --luacheck: ignore 212/t error("Unknown config option operation: '"..k.."'", 2); end; }); @@ -194,7 +194,15 @@ do end if g_val ~= nil then - t_insert(warnings, ("%s:%d: direct usage of the Lua API is deprecated - replace `%s` with `Lua.%s`"):format(config_file, get_line_number(config_file), k, k)); + t_insert( + warnings, + ("%s:%d: direct usage of the Lua API is deprecated - replace `%s` with `Lua.%s`"):format( + config_file, + get_line_number(config_file), + k, + k + ) + ); end return g_val; |