Software /
code /
prosody
Changeset
13391:5c783cf58ae7
configmanager: Fix linter issues
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 08 Dec 2023 15:37:13 +0000 |
parents | 13390:905a6009f60d |
children | 13392:e8f8a4394187 |
files | core/configmanager.lua |
diffstat | 1 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/configmanager.lua Fri Dec 08 15:34:48 2023 +0000 +++ b/core/configmanager.lua Fri Dec 08 15:37:13 2023 +0000 @@ -146,7 +146,7 @@ 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 @@ 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;