Skip to content

Commit

Permalink
fixed waterfall
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrico Marino committed Aug 13, 2011
1 parent f3aec61 commit 949e9e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,10 @@
};

async.waterfall = function (tasks, callback) {
callback = callback || function () {};
if (!tasks.length) {
return callback();
}
callback = callback || function () {};
var wrapIterator = function (iterator) {
return function (err) {
if (err) {
Expand Down

0 comments on commit 949e9e1

Please sign in to comment.