From 4c61f57f1b1b6f2dda5960a163bbdfa0fc9f7311 Mon Sep 17 00:00:00 2001 From: Madhav Gharmalkar Date: Thu, 29 Sep 2016 23:33:00 -0700 Subject: src: fixes misplaced comment In e26622b, a comment was incorrectly moved from the code it was describing. Fixes: https://github.com/nodejs/node/issues/8856 PR-URL: https://github.com/nodejs/node/pull/8860 Reviewed-By: James M Snell Reviewed-By: Ilkka Myller Reviewed-By: Colin Ihrig --- lib/_stream_transform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/_stream_transform.js b/lib/_stream_transform.js index 259774c45c..892c80459a 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, data) { -- cgit v1.2.3