remove unnecessary checks

This commit is contained in:
Barış Soner Uşaklı
2017-05-27 00:47:04 -04:00
parent f1b8492164
commit bcc566fb68
7 changed files with 4 additions and 17 deletions

View File

@@ -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);