configmanager: Fix linter issues
authorMatthew Wild <mwild1@gmail.com>
Fri, 08 Dec 2023 15:37:13 +0000
changeset 13395 5c783cf58ae7
parent 13394 905a6009f60d
child 13396 e8f8a4394187
configmanager: Fix linter issues
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;