diff options
author | Kim Alvefur <zash@zash.se> | 2021-07-25 16:33:19 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-07-25 16:33:19 +0200 |
commit | 7711193903f731f3bb842f5b8603ab255e125215 (patch) | |
tree | 6758cfe3e8c24fec135567b0d4d5fc073106e4fc /plugins/mod_pubsub | |
parent | 5d24efb239cc9c8d4fd923b2289278784fe912a4 (diff) | |
download | prosody-7711193903f731f3bb842f5b8603ab255e125215.tar.gz prosody-7711193903f731f3bb842f5b8603ab255e125215.zip |
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?
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r-- | plugins/mod_pubsub/mod_pubsub.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua index 331364d5..2557c2a7 100644 --- a/plugins/mod_pubsub/mod_pubsub.lua +++ b/plugins/mod_pubsub/mod_pubsub.lua @@ -57,7 +57,7 @@ local function create_simple_itemstore(node_config, node_name) --> util.cache li 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; |