configmanager: Rename variable to avoid name conflict [luacheck]
authorMatthew Wild <mwild1@gmail.com>
Mon, 18 May 2015 18:03:07 +0000 (19:03 +0100)
committerMatthew Wild <mwild1@gmail.com>
Mon, 18 May 2015 18:03:07 +0000 (19:03 +0100)
core/configmanager.lua

index 48f039eac8c3eea55ebe45c64efe23b10cdb93e7..5891c59a0653f4cfac3503c2217174bd982dafe4 100644 (file)
@@ -54,11 +54,11 @@ function _M.rawget(host, key, _oldkey)
        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;