removed unnecessary waterfall

v1.18.x
barisusakli 9 years ago
parent 89596b81e0
commit 86b616ab9e

@ -17,8 +17,6 @@ flagsController.get = function(req, res, next) {
var start = (page - 1) * itemsPerPage; var start = (page - 1) * itemsPerPage;
var stop = start + itemsPerPage - 1; var stop = start + itemsPerPage - 1;
async.waterfall([
function (next) {
async.parallel({ async.parallel({
flagData: function(next) { flagData: function(next) {
if (byUsername) { if (byUsername) {
@ -34,9 +32,7 @@ flagsController.get = function(req, res, next) {
assignees: function(next) { assignees: function(next) {
user.getAdminsandGlobalMods(next); user.getAdminsandGlobalMods(next);
} }
}, next); }, function (err, results) {
}
], function (err, results) {
if (err) { if (err) {
return next(err); return next(err);
} }

Loading…
Cancel
Save