net: change assert to conform to other files

PR-URL: https://github.com/nodejs/node/pull/15861
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
James Hodgskiss 2017-10-06 09:52:56 -07:00 committed by Rich Trott
parent 6af889615d
commit e399abd582

View File

@ -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;