process: remove protection for SyncWriteStream destroy in stdio · nodejs/node@d4eda4d (original) (raw)

Original file line number Diff line number Diff line change
@@ -3,13 +3,7 @@
3 3 exports.getMainThreadStdio = getMainThreadStdio;
4 4
5 5 function dummyDestroy(err, cb) {
6 -// SyncWriteStream does not use the stream
7 -// destroy mechanism for some legacy reason.
8 -// TODO(mcollina): remove when
9 -// https://github.com/nodejs/node/pull/26690 lands.
10 -if (typeof cb === 'function') {
11 -cb(err);
12 -}
6 +cb(err);
13 7
14 8 // We need to emit 'close' anyway so that the closing
15 9 // of the stream is observable. We just make sure we