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
commitc29efd2a381697c1e2deb51087cee2c9b3dd18fd (patch)
tree46257a88fbbdc4bcbb4245ead9121e2fef406414
parentb4fa48b3c737faeab14b5a16a076085181a779c1 (diff)
downloadprosody-c29efd2a381697c1e2deb51087cee2c9b3dd18fd.tar.gz
prosody-c29efd2a381697c1e2deb51087cee2c9b3dd18fd.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;