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

@@ -186,10 +186,6 @@ module.exports = function (Categories) {
topics.getPids(tid, next);
},
function (pids, next) {
if (!Array.isArray(pids) || !pids.length) {
return callback();
}
batch.processArray(pids, function (pids, next) {
async.waterfall([
function (next) {