aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_csi.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2024-08-17 23:15:14 +0200
committerKim Alvefur <zash@zash.se>2024-08-17 23:15:14 +0200
commit8d00eaa0c74f4f93ef53027b8c4416f6c2df16c3 (patch)
tree04f3e0072213a2d27dab77d35ecd5f216ec05ffe /plugins/mod_csi.lua
parent0a910917e7a4c846444d4e4bdb1fe212d5f6145e (diff)
downloadprosody-8d00eaa0c74f4f93ef53027b8c4416f6c2df16c3.tar.gz
prosody-8d00eaa0c74f4f93ef53027b8c4416f6c2df16c3.zip
mod_csi: Rename unused loop variables to '_' [luacheck]
Diffstat (limited to 'plugins/mod_csi.lua')
-rw-r--r--plugins/mod_csi.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_csi.lua b/plugins/mod_csi.lua
index 63e0154f..75dc4148 100644
--- a/plugins/mod_csi.lua
+++ b/plugins/mod_csi.lua
@@ -34,8 +34,8 @@ module:hook_global("stats-update", function()
count:with_labels("active"):set(0);
count:with_labels("inactive"):set(0);
count:with_labels("flushing"):set(0);
- for user, user_session in pairs(sessions) do
- for resource, session in pairs(user_session.sessions) do
+ for _, user_session in pairs(sessions) do
+ for _, session in pairs(user_session.sessions) do
if session.state == "inactive" or session.state == "active" or session.state == "flushing" then
count:with_labels(session.state):add(1);
end