From 8ab691726d76026c123b4ad96bb771be94c96729 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 10 Oct 2010 20:16:21 -0700 Subject: [PATCH] clean up options.end code - wasn't working --- lib/stream.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/stream.js b/lib/stream.js index 6ab1f895d8..47a355b76f 100644 --- a/lib/stream.js +++ b/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(); });