[Pkg-javascript-commits] [node-module-deps] 348/444: added null check before calling callback function
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:48:12 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 0a700653c7593d3a1ff114fed82dc83c9fd5bfa8
Author: jeff.ardilio <jardilio at kpmg.com>
Date: Thu Mar 19 21:36:15 2015 -0400
added null check before calling callback function
---
index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.js b/index.js
index baa744b..18244cf 100644
--- a/index.js
+++ b/index.js
@@ -255,7 +255,7 @@ Deps.prototype.getTransforms = function (file, pkg, opts) {
function loadTransform (id, trOpts, cb) {
var params = { basedir: path.dirname(file) };
nodeResolve(id, params, function nr (err, res, again) {
- if (err && again) return cb(err);
+ if (err && again) return cb && cb(err);
if (err) {
params.basedir = pkg.__dirname;
--
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