Skip to content

Commit cd73b41

Browse files
committed
Undo change after making strict-boolean-expressions stricter
1 parent b40e249 commit cd73b41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/hardhat-core/src/internal/artifacts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,8 @@ Please replace "${contractName}" for the correct contract name wherever you are
501501
): string[] {
502502
const outputNames = [];
503503
const groups = similarNames.reduce((obj, cur) => {
504-
obj[cur] = obj[cur] === 0 ? 1 : obj[cur] + 1;
504+
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
505+
obj[cur] = obj[cur] ? obj[cur] + 1 : 1;
505506
return obj;
506507
}, {} as { [k: string]: number });
507508

0 commit comments

Comments
 (0)