aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJames Hodgskiss <james.hodgskiss@bazaarvoice.com>2017-10-06 09:52:56 -0700
committerRich Trott <rtrott@gmail.com>2017-10-10 19:36:44 -0700
commite399abd5823b5428e3f3752b3f16f75c302ae471 (patch)
tree152a74d3a707109fa1f8e1d0a9fd29b3664d44e5 /lib
parent6af889615dfb04a39b658e54cf1e5b4b7906d624 (diff)
downloadandroid-node-v8-e399abd5823b5428e3f3752b3f16f75c302ae471.tar.gz
android-node-v8-e399abd5823b5428e3f3752b3f16f75c302ae471.tar.bz2
android-node-v8-e399abd5823b5428e3f3752b3f16f75c302ae471.zip
net: change assert to conform to other files
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'lib')
-rw-r--r--lib/net.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net.js b/lib/net.js
index 2069216e0f..a78266336c 100644
--- a/lib/net.js
+++ b/lib/net.js
@@ -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;
@@ -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;