From 7b0cf87101407f43e2ba7e76572adac8cf501238 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 f105bd5d57..ab253d04c2 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.deepStrictEqual(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)