summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/net.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/net.js b/lib/net.js
index 7bbabc75ba..990fd7b5a1 100644
--- a/lib/net.js
+++ b/lib/net.js
@@ -281,11 +281,8 @@ function Socket(options) {
throw errnoException(err, 'open');
this[async_id_symbol] = this._handle.getAsyncId();
- // options.fd can be string (since it is user-defined),
- // so changing this to === would be semver-major
- // See: https://github.com/nodejs/node/pull/11513
- // eslint-disable-next-line eqeqeq
- if ((fd == 1 || fd == 2) &&
+
+ if ((fd === 1 || fd === 2) &&
(this._handle instanceof Pipe) &&
process.platform === 'win32') {
// Make stdout and stderr blocking on Windows