Software /
code /
prosody
Diff
core/sessionmanager.lua @ 6676:a536978e0f01
sessionmanager: Rename unused loop variables to '_' [luacheck]
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 06 May 2015 19:58:03 +0100 |
parent | 6663:d3023dd07cb6 |
child | 6677:1089f45c5e67 |
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;