From 32f6098eefc7404ef74ca59dfdfceebb009f6f53 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 15 Feb 2016 07:46:58 -0800 Subject: src,test,tools: modify for more stringent linting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ESLint 2.1.0 is coming. Some lint rules have been tightened. PR-URL: https://github.com/nodejs/node/pull/5214 Reviewed-By: Michaël Zasso Reviewed-By: jbergstroem - Johan Bergström Reviewed-By: James M Snell Reviewed-By: Roman Reiss Reviewed-By: Myles Borins --- test/sequential/test-child-process-fork-getconnections.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/sequential/test-child-process-fork-getconnections.js') diff --git a/test/sequential/test-child-process-fork-getconnections.js b/test/sequential/test-child-process-fork-getconnections.js index f7bb9f5eea..8928ef6c74 100644 --- a/test/sequential/test-child-process-fork-getconnections.js +++ b/test/sequential/test-child-process-fork-getconnections.js @@ -56,9 +56,9 @@ if (process.argv[2] === 'child') { let disconnected = 0; server.on('listening', function() { - let j = count, client; + let j = count; while (j--) { - client = net.connect(common.PORT, '127.0.0.1'); + const client = net.connect(common.PORT, '127.0.0.1'); client.on('close', function() { disconnected += 1; }); -- cgit v1.2.3