[Pkg-javascript-commits] [node-jsonstream] 32/214: fixes the empty test

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 12:58:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-jsonstream.

commit 1eef0b75f1bc0943efbd38a3ad01565946198b2b
Author: James Halliday <mail at substack.net>
Date:   Wed Jun 13 17:41:49 2012 -0700

    fixes the empty test
---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index a0bfe3d..31bf1fe 100644
--- a/index.js
+++ b/index.js
@@ -78,7 +78,7 @@ exports.parse = function (path) {
   stream.end = function (data) {
     if(data)
       stream.write(data)
-    if(!count)
+    if(!count && !path)
       stream.emit('data', stream.root)
     stream.emit('end')
   }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-jsonstream.git



More information about the Pkg-javascript-commits mailing list