Skip to content

Commit e5c3873

Browse files
committed
fixup
1 parent 6edabf1 commit e5c3873

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/internal/streams/pipeline.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,6 @@ function pipelineImpl(streams, callback, opts) {
303303
} else if (isNodeStream(stream)) {
304304
if (isReadableNodeStream(ret)) {
305305
pipe(ret, stream);
306-
307-
// Compat. Before node v10.12.0 stdio used to throw an error so
308-
// pipe() did/does not end() stdio destinations.
309-
// Now they allow it but "secretly" don't close the underlying fd.
310-
if (stream === process.stdout || stream === process.stderr) {
311-
ret.on('end', () => stream.end());
312-
}
313306
} else {
314307
ret = makeAsyncIterable(ret);
315308

0 commit comments

Comments
 (0)