mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
luacheck: Shut up (backports 3caff1f93520, ignores module deleted in trunk)
This commit is contained in:
parent
7f2a660158
commit
1261dfba9f
2 changed files with 4 additions and 2 deletions
|
@ -149,6 +149,8 @@ if os.getenv("PROSODY_STRICT_LINT") ~= "1" then
|
|||
"net/dns.lua";
|
||||
"net/server_select.lua";
|
||||
|
||||
"util/vcard.lua";
|
||||
|
||||
"plugins/mod_storage_sql1.lua";
|
||||
|
||||
"spec/core_moduleapi_spec.lua";
|
||||
|
|
|
@ -38,7 +38,7 @@ local metric_proxy_mt = {}
|
|||
metric_proxy_mt.__index = metric_proxy_mt
|
||||
|
||||
local function new_metric_proxy(metric_family, with_labels_proxy_fun)
|
||||
return {
|
||||
return setmetatable({
|
||||
_family = metric_family,
|
||||
with_labels = function(self, ...)
|
||||
return with_labels_proxy_fun(self._family, ...)
|
||||
|
@ -48,7 +48,7 @@ local function new_metric_proxy(metric_family, with_labels_proxy_fun)
|
|||
return family:with_labels(label, ...)
|
||||
end)
|
||||
end
|
||||
}
|
||||
}, metric_proxy_mt);
|
||||
end
|
||||
|
||||
-- END of Utility: "metric proxy"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue