Skip to content

Commit bf7f63d

Browse files
James HodgskissMylesBorins
James Hodgskiss
authored andcommitted
net: change assert to conform to other files
PR-URL: #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]>
1 parent 4fd5bf5 commit bf7f63d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/net.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ function connect(self, address, port, addressType, localAddress, localPort) {
817817
// TODO return promise from Socket.prototype.connect which
818818
// wraps _connectReq.
819819

820-
assert.ok(self.connecting);
820+
assert(self.connecting);
821821

822822
var err;
823823

@@ -1065,7 +1065,7 @@ function afterConnect(status, handle, req, readable, writable) {
10651065

10661066
debug('afterConnect');
10671067

1068-
assert.ok(self.connecting);
1068+
assert(self.connecting);
10691069
self.connecting = false;
10701070
self._sockname = null;
10711071

0 commit comments

Comments
 (0)