aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-08-18 14:38:18 +0100
committerMatthew Wild <mwild1@gmail.com>2018-08-18 14:38:18 +0100
commitdf1abfdd10b291f3d170b2be1a8ce6ffd3b2ccc0 (patch)
tree2ec60f8983d2ca81c1356cbf4dec73a416b177a0 /plugins
parent38c448b46053344b862b5f2b6ef551b2bbcf3f20 (diff)
downloadprosody-df1abfdd10b291f3d170b2be1a8ce6ffd3b2ccc0.tar.gz
prosody-df1abfdd10b291f3d170b2be1a8ce6ffd3b2ccc0.zip
mod_pep: Simplify code
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pep.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index 50cf3ff1..0d52a2fd 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -253,8 +253,7 @@ end
local function resend_last_item(jid, node, service)
local ok, id, item = service:get_last_item(node, jid);
- if not ok then return; end
- if not id then return; end
+ if not (ok and id) then return; end
service.config.broadcaster("items", node, { [jid] = true }, item);
end