We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b40e249 commit cd73b41Copy full SHA for cd73b41
packages/hardhat-core/src/internal/artifacts.ts
@@ -501,7 +501,8 @@ Please replace "${contractName}" for the correct contract name wherever you are
501
): string[] {
502
const outputNames = [];
503
const groups = similarNames.reduce((obj, cur) => {
504
- obj[cur] = obj[cur] === 0 ? 1 : obj[cur] + 1;
+ // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
505
+ obj[cur] = obj[cur] ? obj[cur] + 1 : 1;
506
return obj;
507
}, {} as { [k: string]: number });
508
0 commit comments