[Pkg-javascript-commits] [node-module-deps] 69/444: make sure you still emit end

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:47:44 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 c2b9ef1e083c6d602491b4bc12678a313d8e198a
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date:   Wed Apr 24 16:30:16 2013 +0100

    make sure you still emit end
---
 index.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/index.js b/index.js
index f4d7f4b..df6abec 100644
--- a/index.js
+++ b/index.js
@@ -51,9 +51,10 @@ module.exports = function (mains, opts) {
             return pkg;
         };
         
-        if(opts.filter && !opts.filter(id))
-            return cb(false);
-        
+        if(opts.filter && !opts.filter(id)) {
+            if(cb) cb(false);
+            if (--pending === 0) output.queue(null);
+        }
         resolve(id, parent, function (err, file) {
             if (err) return output.emit('error', err);
             if (!file) return output.emit('error', new Error([

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