[Pkg-javascript-commits] [node-async] 421/480: replace `callback(null)` * 3 to `callback()` for consistency

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:48 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 23691dffdfce73287a879a6c8dc8ef7f891666b1
Author: fritx <uxfritz at 163.com>
Date:   Sat Mar 29 20:49:33 2014 +0800

    replace `callback(null)` * 3 to `callback()` for consistency
---
 lib/async.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/async.js b/lib/async.js
index 64398b9..b6d02c3 100755
--- a/lib/async.js
+++ b/lib/async.js
@@ -123,7 +123,7 @@
           else {
               completed += 1;
               if (completed >= arr.length) {
-                  callback(null);
+                  callback();
               }
           }
         }
@@ -145,7 +145,7 @@
                 else {
                     completed += 1;
                     if (completed >= arr.length) {
-                        callback(null);
+                        callback();
                     }
                     else {
                         iterate();
@@ -403,7 +403,7 @@
         callback = callback || function () {};
         var keys = _keys(tasks);
         if (!keys.length) {
-            return callback(null);
+            return callback();
         }
 
         var results = {};

-- 
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