Skip to content

Commit e399abd

Browse files
James HodgskissTrott
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 6af8896 commit e399abd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/net.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ function internalConnect(
903903
// TODO return promise from Socket.prototype.connect which
904904
// wraps _connectReq.
905905

906-
assert.ok(self.connecting);
906+
assert(self.connecting);
907907

908908
var err;
909909

@@ -1154,7 +1154,7 @@ function afterConnect(status, handle, req, readable, writable) {
11541154

11551155
debug('afterConnect');
11561156

1157-
assert.ok(self.connecting);
1157+
assert(self.connecting);
11581158
self.connecting = false;
11591159
self._sockname = null;
11601160

0 commit comments

Comments
 (0)