Browse Source

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>
v9.x-staging
James Hodgskiss 7 years ago
committed by Rich Trott
parent
commit
e399abd582
  1. 4
      lib/net.js

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

Loading…
Cancel
Save