From 8d00eaa0c74f4f93ef53027b8c4416f6c2df16c3 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 17 Aug 2024 23:15:14 +0200 Subject: mod_csi: Rename unused loop variables to '_' [luacheck] --- plugins/mod_csi.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/mod_csi.lua') 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 -- cgit v1.2.3