Software /
code /
prosody
Changeset
6676:a536978e0f01
sessionmanager: Rename unused loop variables to '_' [luacheck]
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 06 May 2015 19:58:03 +0100 |
parents | 6675:cb5b56ddabfd |
children | 6677:1089f45c5e67 |
files | core/sessionmanager.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;