Browse Source

clean up options.end code - wasn't working

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
8ab691726d
  1. 4
      lib/stream.js

4
lib/stream.js

@ -23,9 +23,7 @@ Stream.prototype.pipe = function (dest, options) {
* source gets the 'end' event.
*/
options.end = options && options.end === false ? false : true;
if (options.end) {
if (!options || options.end === false) {
source.on("end", function () {
dest.end();
});

Loading…
Cancel
Save