From f5103f85be168793d32e294d53f552770e11a356 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 `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.) --- 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 f105bd5d57836b..ab253d04c2c790 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)