Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…r `.chunks`
  • Loading branch information...
commit 852d053bcece03400113d6b16dcea997cfaf8930 1 parent b4c26ad
Charlie Robbins indexzero authored

Showing 1 changed file with 1 addition and 4 deletions. Show diff stats Hide diff stats

  1. +1 4 lib/buffered-stream.js
5 lib/buffered-stream.js
@@ -110,10 +110,7 @@ BufferedStream.prototype.write = function (chunk) {
110 110 BufferedStream.prototype.end = function () {
111 111 this.readable = false;
112 112 this.ended = true;
113   -
114   - if (!this.chunks || !this.chunks.length) {
115   - this.emit('end');
116   - }
  113 + this.emit('end');
117 114 };
118 115
119 116 BufferedStream.prototype.close = function () {

0 comments on commit 852d053

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