Address new violations of @stylistic/no-extra-parens.

This commit is contained in:
David Anson 2024-10-06 21:03:07 -07:00
parent 4f6b17934a
commit 61a9c2427e
5 changed files with 7 additions and 7 deletions

View file

@ -86,7 +86,7 @@ test("filterByPredicate/filterByTypes", async(t) => {
t.plan(1);
const tokens = await testTokens;
const byPredicate = filterByPredicate(tokens, () => true);
const allTypes = new Set(byPredicate.map(((token) => token.type)));
const allTypes = new Set(byPredicate.map((token) => token.type));
const byTypes = filterByTypes(tokens, [ ...allTypes.values() ], true);
t.deepEqual(byPredicate, byTypes);
});