mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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: https://github.com/nodejs/node/pull/7599 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
This commit is contained in:
1 parent
e1aedbf671
commit
5192bed68c
1 file changed
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user