Skip to content
Browse files

[fix] Simply emit `end` event in `BufferedStream` without checking fo…

…r `.chunks`
  • Loading branch information...
1 parent b4c26ad commit 852d053bcece03400113d6b16dcea997cfaf8930 @indexzero indexzero committed May 27, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/buffered-stream.js
View
5 lib/buffered-stream.js
@@ -110,10 +110,7 @@ BufferedStream.prototype.write = function (chunk) {
BufferedStream.prototype.end = function () {
this.readable = false;
this.ended = true;
-
- if (!this.chunks || !this.chunks.length) {
- this.emit('end');
- }
+ this.emit('end');
};
BufferedStream.prototype.close = function () {

0 comments on commit 852d053

Please sign in to comment.
Something went wrong with that request. Please try again.