diff --git a/lib/net.js b/lib/net.js index 8256838b5bd88a..50c4a5cf3fd148 100644 --- a/lib/net.js +++ b/lib/net.js @@ -817,7 +817,7 @@ function connect(self, address, port, addressType, localAddress, localPort) { // TODO return promise from Socket.prototype.connect which // wraps _connectReq. - assert.ok(self.connecting); + assert(self.connecting); var err; @@ -1065,7 +1065,7 @@ function afterConnect(status, handle, req, readable, writable) { debug('afterConnect'); - assert.ok(self.connecting); + assert(self.connecting); self.connecting = false; self._sockname = null;