summaryrefslogtreecommitdiff
path: root/test/parallel/test-net-connect-options-path.js
diff options
context:
space:
mode:
authorMithun Sasidharan <mithunsasidharan89@gmail.com>2017-12-08 22:44:28 +0530
committerJon Moss <me@jonathanmoss.me>2017-12-11 15:19:11 -0500
commitf3aaaa52b738e20192468a5157721c0a62027a16 (patch)
tree3b24764fd0dce4e9d3d8047dd6615a27fee49650 /test/parallel/test-net-connect-options-path.js
parent8d23afc807303a9afc1851802e1d88f0d3a84c29 (diff)
downloadandroid-node-v8-f3aaaa52b738e20192468a5157721c0a62027a16.tar.gz
android-node-v8-f3aaaa52b738e20192468a5157721c0a62027a16.tar.bz2
android-node-v8-f3aaaa52b738e20192468a5157721c0a62027a16.zip
test: refactored to remove unnecessary variables
PR-URL: https://github.com/nodejs/node/pull/17553 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test/parallel/test-net-connect-options-path.js')
-rw-r--r--test/parallel/test-net-connect-options-path.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/parallel/test-net-connect-options-path.js b/test/parallel/test-net-connect-options-path.js
index 07c5446fc6..3868b85a78 100644
--- a/test/parallel/test-net-connect-options-path.js
+++ b/test/parallel/test-net-connect-options-path.js
@@ -20,9 +20,8 @@ const CLIENT_VARIANTS = 12;
}, CLIENT_VARIANTS))
.listen(serverPath, common.mustCall(function() {
const getConnectCb = () => common.mustCall(function() {
- const client = this;
- client.end();
- client.on('close', common.mustCall(function() {
+ this.end();
+ this.on('close', common.mustCall(function() {
counter++;
if (counter === CLIENT_VARIANTS) {
server.close();