From 9bd172682165f53c829167da76c8aa423b5df22e Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 8 Dec 2023 15:37:13 +0000 Subject: configmanager: Fix linter issues --- core/configmanager.lua | 12 ++++++++++-- 1 file 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; -- cgit v1.2.3