Skip to content

Commit 7b0cf87

Browse files
committed
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.) PR-URL: #7599 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent bc5b89f commit 7b0cf87

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/parallel/test-child-process-fork.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ var args = ['foo', 'bar'];
77
var n = fork(common.fixturesDir + '/child-process-spawn-node.js', args);
88
assert.deepStrictEqual(args, ['foo', 'bar']);
99

10-
var messageCount = 0;
11-
1210
n.on('message', function(m) {
1311
console.log('PARENT got message:', m);
1412
assert.ok(m.foo);
15-
messageCount++;
1613
});
1714

1815
// https://github.com/joyent/node/issues/2355 - JSON.stringify(undefined)

0 commit comments

Comments
 (0)