From 324c8b5f7ed3a06152f53586d15ffec737e952f2 Mon Sep 17 00:00:00 2001 From: Madhav Gharmalkar Date: Thu, 29 Sep 2016 23:33:00 -0700 Subject: [PATCH] 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(-) 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) {