From e399abd5823b5428e3f3752b3f16f75c302ae471 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 2069216e0f..a78266336c 100644 --- a/lib/net.js +++ b/lib/net.js @@ -903,7 +903,7 @@ function internalConnect( // TODO return promise from Socket.prototype.connect which // wraps _connectReq. - assert.ok(self.connecting); + assert(self.connecting); var err; @@ -1154,7 +1154,7 @@ function afterConnect(status, handle, req, readable, writable) { debug('afterConnect'); - assert.ok(self.connecting); + assert(self.connecting); self.connecting = false; self._sockname = null;