configmanager: Rename variable to avoid name conflict [luacheck]
authorMatthew Wild <mwild1@gmail.com>
Mon, 18 May 2015 19:03:07 +0100
changeset 6715 29d5875ae38d
parent 6714 76683a3f3d75
child 6716 b628870b1bd6
configmanager: Rename variable to avoid name conflict [luacheck]
core/configmanager.lua
--- a/core/configmanager.lua	Mon May 18 22:04:12 2015 +0200
+++ b/core/configmanager.lua	Mon May 18 19:03:07 2015 +0100
@@ -54,11 +54,11 @@
 	end
 end
 
-local function set(config, host, key, value)
+local function set(config_table, host, key, value)
 	if host and key then
-		local hostconfig = rawget(config, host);
+		local hostconfig = rawget(config_table, host);
 		if not hostconfig then
-			hostconfig = rawset(config, host, setmetatable({}, host_mt))[host];
+			hostconfig = rawset(config_table, host, setmetatable({}, host_mt))[host];
 		end
 		hostconfig[key] = value;
 		return true;