diff --git a/lib/net.js b/lib/net.js index 8e6dcbf7bf..3d0fe6941e 100644 --- a/lib/net.js +++ b/lib/net.js @@ -784,7 +784,7 @@ function connect(self, address, port, addressType, localAddress) { var err; if (localAddress) { - if (addressType == 6) { + if (addressType === 6) { err = self._handle.bind6(localAddress); } else { err = self._handle.bind(localAddress); @@ -1020,7 +1020,7 @@ var createServerHandle = exports._createServerHandle = handle.writable = true; return handle; - } else if (port == -1 && addressType == -1) { + } else if (port === -1 && addressType === -1) { handle = createPipe(); if (process.platform === 'win32') { var instances = parseInt(process.env.NODE_PENDING_PIPE_INSTANCES); @@ -1034,7 +1034,7 @@ var createServerHandle = exports._createServerHandle = if (address || port) { debug('bind to ' + address); - if (addressType == 6) { + if (addressType === 6) { err = handle.bind6(address, port); } else { err = handle.bind(address, port);