diff options
author | MaleDong <maledong_github@outlook.com> | 2018-09-11 06:55:03 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2018-09-20 08:41:15 +0300 |
commit | 49b59334d066fefb76e45a817c1760ca986d1ff0 (patch) | |
tree | 75cc60d4427a8db8f3510a5741fa8ec5781fc0df /src/node_worker.cc | |
parent | f0a40172a88dd35ccb8d5525dabab7ddc23b0f78 (diff) |
lib: simplify 'processChunkSync'
According to the real logic codes, it seems no matter whether 'nread >=
kMaxLength' or not. We always close the 'self' stream first. So we can
shorten it by merging them into one sample.
PR-URL: https://github.com/nodejs/node/pull/22802
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Weijia Wang <starkwang@126.com>
Diffstat (limited to 'src/node_worker.cc')
0 files changed, 0 insertions, 0 deletions