Unverified Commit 8f830ca8 authored by Luigi Pinca's avatar Luigi Pinca Committed by Myles Borins
Browse files

stream: remove unreachable code

To avoid a function call `BufferList.prototype.concat()` is not called
when there is only a buffer in the list. That buffer is instead
accessed directly.

Backport-PR-URL: https://github.com/nodejs/node/pull/19483
PR-URL: https://github.com/nodejs/node/pull/18239


Reviewed-By: default avatarMatteo Collina <matteo.collina@gmail.com>
parent 49d8c2e8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment