mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
remove unnecessary checks
This commit is contained in:
@@ -19,7 +19,7 @@ module.exports = function (Categories) {
|
||||
topics.getTopicsByTids(tids, data.uid, next);
|
||||
},
|
||||
function (topics, next) {
|
||||
if (!Array.isArray(topics) || !topics.length) {
|
||||
if (!topics.length) {
|
||||
return next(null, { topics: [], uid: data.uid });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user