From 4d36a67738109d53ab77de4c5357d7f61fba8cc4 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 7 Jul 2016 15:35:51 -0700 Subject: [PATCH] test: remove unused var from child-process-fork MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `messageCount` 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/7599 Reviewed-By: Colin Ihrig Reviewed-By: Michaƫl Zasso --- test/parallel/test-child-process-fork.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/parallel/test-child-process-fork.js b/test/parallel/test-child-process-fork.js index c35510e60c..8310da3f60 100644 --- a/test/parallel/test-child-process-fork.js +++ b/test/parallel/test-child-process-fork.js @@ -7,12 +7,9 @@ var args = ['foo', 'bar']; var n = fork(common.fixturesDir + '/child-process-spawn-node.js', args); assert.deepEqual(args, ['foo', 'bar']); -var messageCount = 0; - n.on('message', function(m) { console.log('PARENT got message:', m); assert.ok(m.foo); - messageCount++; }); // https://github.com/joyent/node/issues/2355 - JSON.stringify(undefined)