Skip to content

Commit

Permalink
chagne report working
Browse files Browse the repository at this point in the history
  • Loading branch information
a-hariti committed Jul 25, 2024
1 parent c93a334 commit 983ddae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/lint-404s/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,11 @@ async function main() {
console.log('\n\n🎉 No 404s found');
return false;
}
const numberOf404s = all404s.map(x => x.page404s.length).reduce((a, b) => a + b, 0);
console.log(
'\n❌ Found %d 404s across %d %s',
all404s.map(x => x.page404s.length).reduce((a, b) => a + b, 0),
'\n❌ Found %d %s across %d %s',
numberOf404s,
numberOf404s === 1 ? '404' : '404s',
all404s.length,
all404s.length === 1 ? 'page' : 'pages'
);
Expand Down

0 comments on commit 983ddae

Please sign in to comment.