# HG changeset patch # User Matthew Wild # Date 1702049833 0 # Node ID 5c783cf58ae79d9a4030e3a7ae5072b6f26665d0 # Parent 905a6009f60dc18e22e1f559bf58265a175eebc6 configmanager: Fix linter issues diff -r 905a6009f60d -r 5c783cf58ae7 core/configmanager.lua --- 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;