Changeset

6712:29d5875ae38d

configmanager: Rename variable to avoid name conflict [luacheck]
author Matthew Wild <mwild1@gmail.com>
date Mon, 18 May 2015 19:03:07 +0100
parents 6711:76683a3f3d75
children 6713:b628870b1bd6
files core/configmanager.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;