[Pkg-javascript-commits] [node-async] 430/480: replace `callback(null)` * 3 to `callback()` for consistency
Jonas Smedegaard
js at moszumanska.debian.org
Fri May 2 08:58:49 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 4f45a7d8825c88960308fb36e2a6e07d4b73810c
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 4d460b3..c9f355f 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();
@@ -404,7 +404,7 @@
var keys = _keys(tasks);
var remainingTasks = keys.length
if (!remainingTasks) {
- 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