[Pkg-javascript-commits] [node-jsonstream] 107/214: filter out null propertes, because these end through streams

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 12:58:46 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 9f40201b68d7eacf908a80663caa19ced87d31d9
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date:   Tue May 13 15:29:54 2014 +0200

    filter out null propertes, because these end through streams
---
 index.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 99f7674..5932ab2 100644
--- a/index.js
+++ b/index.js
@@ -80,7 +80,8 @@ exports.parse = function (path) {
     if (j !== this.stack.length) return
 
     count ++
-    stream.queue(this.value[this.key])
+    if(null != this.value[this.key])
+      stream.queue(this.value[this.key])
     delete this.value[this.key]
   }
   parser._onToken = parser.onToken;

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