mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-25 02:01:45 +02:00
fix lint
This commit is contained in:
@@ -9,13 +9,15 @@ module.exports = function (Topics) {
|
||||
count = parseInt(count, 10) || 20;
|
||||
|
||||
if (term === 'alltime') {
|
||||
return getAllTimePopular(uid, count, function (err, topics) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
getAllTimePopular(uid, count, next);
|
||||
},
|
||||
function (topics, next) {
|
||||
sortTiedTopicsByViews(topics, next);
|
||||
}
|
||||
|
||||
sortTiedTopicsByViews(topics, callback);
|
||||
});
|
||||
], callback);
|
||||
return;
|
||||
}
|
||||
|
||||
async.waterfall([
|
||||
|
||||
Reference in New Issue
Block a user