From 24ee0d2111b3244a0eaff4b3b436e93efbbcc1a5 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 7 Jul 2016 15:16:29 -0700 Subject: [PATCH] test: remove unused var in net-server-try-ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `connections` is assigned but never used. Remove it. (This was missed by the linter in previous versions of ESLint but is flagged by the current version. Updating the linter is contingent on this change or some similar remedy landing.) PR-URL: https://github.com/nodejs/node/pull/7597 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Michaƫl Zasso --- test/parallel/test-net-server-try-ports.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/parallel/test-net-server-try-ports.js b/test/parallel/test-net-server-try-ports.js index 5a3fb57a97..b0a877cf98 100644 --- a/test/parallel/test-net-server-try-ports.js +++ b/test/parallel/test-net-server-try-ports.js @@ -5,19 +5,15 @@ require('../common'); var assert = require('assert'); var net = require('net'); -var connections = 0; - var server1listening = false; var server2listening = false; var server2eaddrinuse = false; var server1 = net.Server(function(socket) { - connections++; socket.destroy(); }); var server2 = net.Server(function(socket) { - connections++; socket.destroy(); });