[Pkg-javascript-commits] [node-async] 95/480: fixed waterfall

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:15 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository node-async.

commit 949e9e16c238e732f1d376067772498e5480edd8
Author: Enrico Marino <onirame at gmail.com>
Date:   Fri Aug 12 19:27:48 2011 -0700

    fixed waterfall
---
 lib/async.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/async.js b/lib/async.js
index 73eddc8..828250f 100644
--- a/lib/async.js
+++ b/lib/async.js
@@ -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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git



More information about the Pkg-javascript-commits mailing list