comparison mod_bookmarks2/mod_bookmarks2.lua @ 4279:776eacd233b5

mod_bookmarks2: Fix luacheck warning
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 03 Dec 2020 19:27:11 +0100
parents 5eab799b5fa4
children 3da7cd77aca9
comparison
equal deleted inserted replaced
4278:4ac5d3a5f580 4279:776eacd233b5
243 end 243 end
244 244
245 local data, err = private_storage:get(username, "storage:storage:bookmarks"); 245 local data, err = private_storage:get(username, "storage:storage:bookmarks");
246 if not data then 246 if not data then
247 module:log("debug", "No existing legacy bookmarks for %s, migration already done: %s", jid, err); 247 module:log("debug", "No existing legacy bookmarks for %s, migration already done: %s", jid, err);
248 local ok, ret = service:get_items("urn:xmpp:bookmarks:0", session.full_jid); 248 local ok, ret2 = service:get_items("urn:xmpp:bookmarks:0", session.full_jid);
249 if not ok or not ret then 249 if not ok or not ret2 then
250 module:log("debug", "Additionally, no bookmarks 2 were existing for %s, assuming empty.", jid); 250 module:log("debug", "Additionally, no bookmarks 2 were existing for %s, assuming empty.", jid);
251 module:fire_event("bookmarks/empty", { session = session }); 251 module:fire_event("bookmarks/empty", { session = session });
252 end 252 end
253 return; 253 return;
254 end 254 end