[Pkg-javascript-commits] [node-module-deps] 306/444: Fix for calling an undefined function in case ignoreMissing is set
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:48:07 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 445a87b3eba0731338dcc2cded7e55f7c9202b82
Author: Joris van der Wel <joris at jorisvanderwel.com>
Date: Sat Sep 13 21:35:06 2014 +0200
Fix for calling an undefined function in case ignoreMissing is set
---
index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.js b/index.js
index b7efde3..5da1830 100644
--- a/index.js
+++ b/index.js
@@ -270,7 +270,7 @@ Deps.prototype.walk = function (id, parent, cb) {
if (err && self.options.ignoreMissing) {
if (--self.pending === 0) self.push(null);
self.emit('missing', id, parent);
- return cb(null, undefined);
+ return cb && cb(null, undefined);
}
if (err) return self.emit('error', err);
if (self.visited[file]) {
--
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