Skip to content

Commit 4d36a67

Browse files
TrottMyles Borins
authored and
Myles Borins
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 b5e516a commit 4d36a67

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

-3
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.deepEqual(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)