Software /
code /
prosody-modules
Changeset
4279:776eacd233b5
mod_bookmarks2: Fix luacheck warning
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 03 Dec 2020 19:27:11 +0100 |
parents | 4278:4ac5d3a5f580 |
children | 4280:278f2998ce49 |
files | mod_bookmarks2/mod_bookmarks2.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_bookmarks2/mod_bookmarks2.lua Thu Dec 03 19:25:33 2020 +0100 +++ b/mod_bookmarks2/mod_bookmarks2.lua Thu Dec 03 19:27:11 2020 +0100 @@ -245,8 +245,8 @@ local data, err = private_storage:get(username, "storage:storage:bookmarks"); if not data then module:log("debug", "No existing legacy bookmarks for %s, migration already done: %s", jid, err); - local ok, ret = service:get_items("urn:xmpp:bookmarks:0", session.full_jid); - if not ok or not ret then + local ok, ret2 = service:get_items("urn:xmpp:bookmarks:0", session.full_jid); + if not ok or not ret2 then module:log("debug", "Additionally, no bookmarks 2 were existing for %s, assuming empty.", jid); module:fire_event("bookmarks/empty", { session = session }); end