diff --git a/lib/_stream_transform.js b/lib/_stream_transform.js index 50fc542b5a..66a28726ef 100644 --- a/lib/_stream_transform.js +++ b/lib/_stream_transform.js @@ -94,7 +94,6 @@ function Transform(options) { this._transformState = new TransformState(this); - // when the writable side finishes, then flush out anything remaining. var stream = this; // start out asking for a readable event once data is transformed. @@ -113,6 +112,7 @@ function Transform(options) { this._flush = options.flush; } + // When the writable side finishes, then flush out anything remaining. this.once('prefinish', function() { if (typeof this._flush === 'function') this._flush(function(er) {