Permalink
Browse files

Merge pull request #25 from substack/return_dest

return the destination stream, fixes issue#23
  • Loading branch information...
2 parents a070244 + 20c261b commit d91f70647a703e8db610a8b67c6d31bef457ed9d @mikeal committed Sep 13, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 main.js
View
@@ -178,6 +178,7 @@ File.prototype.pipe = function (dest, options) {
this.destOptions = options
dest.emit('pipe', this)
// stream.Stream.prototype.pipe.call(this, dest, options)
+ return dest
}
File.prototype.write = function (chunk, encoding) {
if (encoding) chunk = chunk.toString(encoding)

0 comments on commit d91f706

Please sign in to comment.