From 7711193903f731f3bb842f5b8603ab255e125215 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 25 Jul 2021 16:33:19 +0200 Subject: 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? --- plugins/mod_pubsub/mod_pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_pubsub/mod_pubsub.lua') 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; -- cgit v1.2.3