Skip to content

Commit

Permalink
Handle edge case for when step promises is set to null.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoguchi committed Apr 5, 2011
1 parent 56418b5 commit 613ef46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sequence.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ MaterializedSequence.prototype = {
// in the sequence's state via seq.values
var returned = arguments
, vals = seq.values;
promises.forEach( function (valName, i) {
if (promises !== null) promises.forEach( function (valName, i) {
vals[valName] = returned[i];
});
});
Expand Down

0 comments on commit 613ef46

Please sign in to comment.