dominictarr / JSONStream

rawStream.pipe(JSONStream.parse()).pipe(streamOfObjects)
Other
1.92k stars 165 forks source link

remove superfluous stream #41

Closed ghost closed 10 years ago

ghost commented 10 years ago

There is a stream allocation at line 170 that seems needless: https://github.com/dominictarr/JSONStream/blob/master/index.js#L170 since at line 173 there is another stream assignment that overwrites the previous value: https://github.com/dominictarr/JSONStream/blob/master/index.js#L173

It seems like this was a bugfix for an odd ordering bug because when I removed that allocation without also updating the inner through functions to use this instead of stream, it didn't work. Now everything is fine.

dominictarr commented 10 years ago

ah, this is left over from when I rewrote JSONStream to use through.

dominictarr commented 10 years ago

merged into 0.8.4