mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
remove unnecessary checks
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user