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:
parent
6af889615d
commit
e399abd582
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user