[Pkg-javascript-commits] [node-module-deps] 117/444: fix bug handling visited nodes
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:47:48 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 a8838ca79f864c0526dc5bdb0471af7d8c4c60d8
Author: James Halliday <mail at substack.net>
Date: Mon Jul 8 16:49:24 2013 -0700
fix bug handling visited nodes
---
index.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.js b/index.js
index a6e7104..4de2f81 100644
--- a/index.js
+++ b/index.js
@@ -42,7 +42,7 @@ module.exports = function (mains, opts) {
output.queue(null);
}
else if (order === upto) {
- output.queue(row);
+ if (row) output.queue(row);
for (upto ++; slots[upto] !== undefined; upto++) {
if (slots[upto]) output.queue(slots[upto]);
delete slots[upto];
@@ -111,7 +111,7 @@ module.exports = function (mains, opts) {
].join('')));
if (cb) cb(file);
if (visited[file]) {
- pushResult(undefined, order);
+ pushResult(false, order);
if (--pending === 0) pushResult(null);
return;
}
--
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