Skip to content

Commit

Permalink
Update: Make settle methods uniform
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jun 27, 2016
1 parent d7c93ab commit b6b06be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/settleParallel.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ function buildSettleParallel() {
}

function settleParallel(done) {
nowAndLater.map(args, asyncSettle, extensions, helpers.onSettled(done));
var onSettled = helpers.onSettled(done);
nowAndLater.map(args, asyncSettle, extensions, onSettled);
}

return settleParallel;
Expand Down
4 changes: 2 additions & 2 deletions lib/settleSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ function buildSettleSeries() {
}

function settleSeries(done) {
nowAndLater.mapSeries(args, asyncSettle, extensions,
helpers.onSettled(done));
var onSettled = helpers.onSettled(done);
nowAndLater.mapSeries(args, asyncSettle, extensions, onSettled);
}

return settleSeries;
Expand Down

0 comments on commit b6b06be

Please sign in to comment.