Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #48 from onirame/master

async.waterfall - set callback before using it
  • Loading branch information...
commit 0a6c73c09e25be4fab3d6222270dadac7cb53381 2 parents f5b1c13 + 949e9e1
@caolan authored
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.