aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-23 21:27:34 +0100
committerKim Alvefur <zash@zash.se>2019-12-23 21:27:34 +0100
commit83c028be30d1467f255756c081c1261ff294a522 (patch)
tree46257a88fbbdc4bcbb4245ead9121e2fef406414
parentc4c6a44c3089cafa59bdea640e0a2e90951a9058 (diff)
downloadprosody-83c028be30d1467f255756c081c1261ff294a522.tar.gz
prosody-83c028be30d1467f255756c081c1261ff294a522.zip
core.statsmanager: Ignore unused variable [luacheck]
-rw-r--r--core/statsmanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/statsmanager.lua b/core/statsmanager.lua
index 50798ad0..d3f1d4f5 100644
--- a/core/statsmanager.lua
+++ b/core/statsmanager.lua
@@ -79,6 +79,7 @@ if stats then
if stats.get_stats then
changed_stats, stats_extra = {}, {};
for stat_name, getter in pairs(stats.get_stats()) do
+ -- luacheck: ignore 211/type
local type, value, extra = getter();
local old_value = latest_stats[stat_name];
latest_stats[stat_name] = value;