[Pkg-javascript-commits] [node-module-deps] 217/444: guard walk() against not having a cb
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:47:57 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-module-deps.
commit 8fe2a1a351b80ed1b950d40efd0328f19ea3698f
Author: James Halliday <mail at substack.net>
Date: Fri May 9 16:16:25 2014 -0700
guard walk() against not having a cb
---
index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.js b/index.js
index 3ebe22f..3de9b7a 100644
--- a/index.js
+++ b/index.js
@@ -262,7 +262,7 @@ Deps.prototype.walk = function (id, parent, cb) {
if (err) return self.emit('error', err);
if (self.visited[file]) {
if (-- self.pending === 0) self.push(null);
- return cb(null, file);
+ return cb && cb(null, file);
}
self.visited[file] = true;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-module-deps.git
More information about the Pkg-javascript-commits
mailing list