镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Commit 5192bed

Browse files
Trottevanlucas
authored andcommitted
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 <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
1 parent e1aedbf commit 5192bed

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎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)