diff options
author | Madhav Gharmalkar <gharmalkar.madhav@gmail.com> | 2016-09-29 23:33:00 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2016-09-30 09:47:09 -0700 |
commit | 4c61f57f1b1b6f2dda5960a163bbdfa0fc9f7311 (patch) | |
tree | 42e29f74c9df4d1815810c4da015edbb4373332c /lib/_stream_transform.js | |
parent | 6e62b7168855d1ca3c13fe9f32b26b0d42bf2c7e (diff) | |
download | node-new-4c61f57f1b1b6f2dda5960a163bbdfa0fc9f7311.tar.gz |
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 <jasnell@gmail.com>
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'lib/_stream_transform.js')
-rw-r--r-- | lib/_stream_transform.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |