Skip to content

Commit

Permalink
net: change assert to conform to other files
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#15861
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
James Hodgskiss authored and addaleax committed Oct 11, 2017
1 parent eb262be commit 946ad1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 946ad1b

Please sign in to comment.