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: #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>
  • Loading branch information
James Hodgskiss authored and MylesBorins committed Nov 28, 2017
1 parent 4fd5bf5 commit bf7f63d
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 @@ -817,7 +817,7 @@ function connect(self, address, port, addressType, localAddress, localPort) {
// TODO return promise from Socket.prototype.connect which
// wraps _connectReq.

assert.ok(self.connecting);
assert(self.connecting);

var err;

Expand Down Expand Up @@ -1065,7 +1065,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 bf7f63d

Please sign in to comment.