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

@@ -271,9 +271,6 @@ UserNotifications.sendTopicNotificationToFollowers = function (uid, topicData, p
db.getSortedSetRange('followers:' + uid, 0, -1, next);
},
function (followers, next) {
if (!Array.isArray(followers) || !followers.length) {
return;
}
privileges.categories.filterUids('read', topicData.cid, followers, next);
},
function (_followers, next) {