Mercurial > prosody-hg
comparison plugins/mod_pubsub/mod_pubsub.lua @ 13457:3347ed1014b8
mod_pubsub: Ignore shadowed variable [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 06 Mar 2024 19:12:11 +0100 |
| parents | e9ab660b9c5f |
| children | cfc42ed3892c |
comparison
equal
deleted
inserted
replaced
| 13456:e9ab660b9c5f | 13457:3347ed1014b8 |
|---|---|
| 280 { name = "service_jid", type = "string" }; | 280 { name = "service_jid", type = "string" }; |
| 281 }; | 281 }; |
| 282 host_selector = "service_jid"; | 282 host_selector = "service_jid"; |
| 283 | 283 |
| 284 handler = function (self, service_jid) --luacheck: ignore 212/self | 284 handler = function (self, service_jid) --luacheck: ignore 212/self |
| 285 -- luacheck: ignore 431/service | |
| 285 local service = get_service(service_jid); | 286 local service = get_service(service_jid); |
| 286 local nodes = select(2, assert(service:get_nodes(true))); | 287 local nodes = select(2, assert(service:get_nodes(true))); |
| 287 local count = 0; | 288 local count = 0; |
| 288 for node_name in pairs(nodes) do | 289 for node_name in pairs(nodes) do |
| 289 count = count + 1; | 290 count = count + 1; |
