Software /
code /
prosody
Changeset
11725:789da12cf232
mod_pubsub: Silence warning about 'service' as argument [luacheck]
Maybe the 'service' in the outer scope should be moved down to minimize
overlap with other functions that receive the same service as argument?
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 25 Jul 2021 16:33:19 +0200 |
parents | 11724:86e68c0a4f05 |
children | 11726:76156c675456 |
files | plugins/mod_pubsub/mod_pubsub.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua Sun Jul 25 16:31:15 2021 +0200 +++ b/plugins/mod_pubsub/mod_pubsub.lua Sun Jul 25 16:33:19 2021 +0200 @@ -57,7 +57,7 @@ return lib_pubsub.archive_itemstore(archive, max_items, nil, node_name); end -function simple_broadcast(kind, node, jids, item, actor, node_obj, service) +function simple_broadcast(kind, node, jids, item, actor, node_obj, service) --luacheck: ignore 431/service if node_obj then if node_obj.config["notify_"..kind] == false then return;