Skip to content

Commit

Permalink
rewrite callback calling for project with envs
Browse files Browse the repository at this point in the history
  • Loading branch information
okv committed Feb 7, 2020
1 parent eb62631 commit b076da5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/distributor.js
Original file line number Diff line number Diff line change
Expand Up @@ -600,11 +600,9 @@ Distributor.prototype.run = function(params, callback) {
});

funcs.push(function(err) {
if (err) {
callback(err, {});
} else {
callback(err, {builds: groupRunBuilds});
}
var result = {};
if (!err) result.builds = groupRunBuilds;
callback(err, result);
});

Steppy.apply(null, funcs);
Expand Down

0 comments on commit b076da5

Please sign in to comment.