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:
@@ -50,7 +50,7 @@ module.exports = function (Topics) {
|
||||
Topics.getTopicsByTids(tids, params.uid, next);
|
||||
},
|
||||
function (topicData, next) {
|
||||
if (!Array.isArray(topicData) || !topicData.length) {
|
||||
if (!topicData.length) {
|
||||
return next(null, unreadTopics);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user