[Pkg-javascript-commits] [node-module-deps] 63/444: missed converting a cb() to 2-arg; all tests pass

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:47:43 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 bfdac739f66d05b52498a5cd1cbeb6f1ea476e6a
Author: James Halliday <mail at substack.net>
Date:   Sun Mar 31 11:31:38 2013 -0700

    missed converting a cb() to 2-arg; all tests pass
---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 5510029..3f3865c 100644
--- a/index.js
+++ b/index.js
@@ -133,7 +133,7 @@ module.exports = function (mains, opts) {
     }
     
     function makeTransform (file, tr, cb) {
-        if (typeof tr === 'function') return cb(tr(file));
+        if (typeof tr === 'function') return cb(null, tr(file));
         
         var params = { basedir: path.dirname(file) };
         nodeResolve(tr, params, function (err, res) {

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