[Pkg-javascript-commits] [node-jsonstream] 169/214: Remove extra space/comma

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 12:58:55 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 e8a02aa2e1ccf7e5525346d51bf680a6d6d8daa8
Author: Guillaume Chauvet <g.chauvet at bimedia.com.fr>
Date:   Mon Aug 31 16:44:54 2015 +0200

    Remove extra space/comma
---
 index.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/index.js b/index.js
index ebefb63..ec30105 100755
--- a/index.js
+++ b/index.js
@@ -18,7 +18,7 @@ exports.parse = function (path, map) {
   var stream = through(function (chunk) {
     if('string' === typeof chunk)
       chunk = new Buffer(chunk)
-    parser.write(chunk);
+    parser.write(chunk)
   },
   function (data) {
     if(data)
@@ -105,9 +105,10 @@ exports.parse = function (path, map) {
   parser.onError = function (err) {
     if(err.message.indexOf("at position") > -1)
       err.message = "Invalid JSON (" + err.message + ")";
-      stream.emit('error', err)
+    stream.emit('error', err)
   }
-  
+
+
   return stream
 }
 

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