# HG changeset patch # User Emmanuel Gil Peyrot # Date 1641333426 -3600 # Node ID cc17708ba777d66abd65ed6ef34bcb9d42b09fce # Parent 60887967b79775938e9929daec93c60e70261d0d mod_bookmarks2: Remove wrong codepath (thanks luacheck!) diff -r 60887967b797 -r cc17708ba777 mod_bookmarks2/mod_bookmarks2.lua --- a/mod_bookmarks2/mod_bookmarks2.lua Tue Jan 04 20:21:10 2022 +0100 +++ b/mod_bookmarks2/mod_bookmarks2.lua Tue Jan 04 22:57:06 2022 +0100 @@ -122,13 +122,8 @@ local service = mod_pep.get_pep_service(username); local ok, ret = service:get_items(namespace, session.full_jid); if not ok then - if ret == "item-not-found" then - module:log("debug", "Got no PEP bookmarks item for %s, returning empty private bookmarks", jid); - session.send(st.reply(stanza):add_child(query)); - else - module:log("error", "Failed to retrieve PEP bookmarks of %s: %s", jid, ret); - session.send(st.error_reply(stanza, "cancel", ret, "Failed to retrive bookmarks from PEP")); - end + module:log("error", "Failed to retrieve PEP bookmarks of %s: %s", jid, ret); + session.send(st.error_reply(stanza, "cancel", ret, "Failed to retrive bookmarks from PEP")); return true; end