# HG changeset patch # User Matthew Wild # Date 1430938683 -3600 # Node ID a536978e0f01e6176ffbcb392d4dddd67562c9d2 # Parent cb5b56ddabfd11e0271ad8b3cb88b551e0af18e4 sessionmanager: Rename unused loop variables to '_' [luacheck] diff -r cb5b56ddabfd -r a536978e0f01 core/sessionmanager.lua --- a/core/sessionmanager.lua Wed May 06 19:51:35 2015 +0100 +++ b/core/sessionmanager.lua Wed May 06 19:58:03 2015 +0100 @@ -198,7 +198,7 @@ local count = 0; local user = bare_sessions[jid]; if user then - for k, session in pairs(user.sessions) do + for _, session in pairs(user.sessions) do if session.presence then session.send(stanza); count = count + 1; @@ -213,7 +213,7 @@ local count = 0; local user = bare_sessions[jid]; if user then - for k, session in pairs(user.sessions) do + for _, session in pairs(user.sessions) do if session.interested then session.send(stanza); count = count + 1;