From bf7f63d51b417b612b1ae0d5fd05b87109ac1f8d Mon Sep 17 00:00:00 2001 From: James Hodgskiss Date: Fri, 6 Oct 2017 09:52:56 -0700 Subject: [PATCH] net: change assert to conform to other files PR-URL: https://github.com/nodejs/node/pull/15861 Reviewed-By: Rich Trott Reviewed-By: Gibson Fahnestock Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- lib/net.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;