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