Skip to content
Browse files

Merge pull request #48 from onirame/master

async.waterfall - set callback before using it
  • Loading branch information...
2 parents f5b1c13 + 949e9e1 commit 0a6c73c09e25be4fab3d6222270dadac7cb53381 @caolan committed Feb 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/async.js
View
2 lib/async.js
@@ -418,10 +418,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) {

0 comments on commit 0a6c73c

Please sign in to comment.
Something went wrong with that request. Please try again.