mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
remove unnecessary checks
This commit is contained in:
@@ -363,10 +363,6 @@ Notifications.markAllRead = function (uid, callback) {
|
||||
db.getSortedSetRevRange('uid:' + uid + ':notifications:unread', 0, 99, next);
|
||||
},
|
||||
function (nids, next) {
|
||||
if (!Array.isArray(nids) || !nids.length) {
|
||||
return next();
|
||||
}
|
||||
|
||||
Notifications.markReadMultiple(nids, uid, next);
|
||||
},
|
||||
], callback);
|
||||
|
||||
Reference in New Issue
Block a user