Software /
code /
prosody
Comparison
core/configmanager.lua @ 6715:03a283aa679e
configmanager: Rename unused function argument [luacheck]
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 18 May 2015 19:05:26 +0100 |
parent | 6714:429068c24ea0 |
child | 6716:2b78754b0f1c |
comparison
equal
deleted
inserted
replaced
6714:429068c24ea0 | 6715:03a283aa679e |
---|---|
26 | 26 |
27 _M.resolve_relative_path = resolve_relative_path; -- COMPAT | 27 _M.resolve_relative_path = resolve_relative_path; -- COMPAT |
28 | 28 |
29 local parsers = {}; | 29 local parsers = {}; |
30 | 30 |
31 local config_mt = { __index = function (t, k) return rawget(t, "*"); end}; | 31 local config_mt = { __index = function (t, _) return rawget(t, "*"); end}; |
32 local config = setmetatable({ ["*"] = { } }, config_mt); | 32 local config = setmetatable({ ["*"] = { } }, config_mt); |
33 | 33 |
34 -- When host not found, use global | 34 -- When host not found, use global |
35 local host_mt = { __index = function(_, k) return config["*"][k] end } | 35 local host_mt = { __index = function(_, k) return config["*"][k] end } |
36 | 36 |