Skip to content

Commit 946ad1b

Browse files
James Hodgskissaddaleax
authored andcommitted
net: change assert to conform to other files
PR-URL: nodejs/node#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>
1 parent eb262be commit 946ad1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)