remove unnecessary checks

This commit is contained in:
Barış Soner Uşaklı
2017-05-27 00:30:07 -04:00
parent 6a742ead38
commit f1b8492164
12 changed files with 29 additions and 40 deletions

View File

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