Skip to content

Commit

Permalink
feat: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 6, 2023
1 parent 7b67dcb commit 27344b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class SvgComposer {
addSponsorGrid(sponsors: Sponsorship[], preset: BadgePreset) {
const perLine = Math.floor((this.config.width - (preset.container?.sidePadding || 0) * 2) / preset.boxWidth)

new Array(Math.ceil(sponsors.length / perLine))
Array.from({ length: Math.ceil(sponsors.length / perLine) })
.fill(0)
.forEach((_, i) => {
this.addSponsorLine(sponsors.slice(i * perLine, (i + 1) * perLine), preset)
Expand Down

0 comments on commit 27344b1

Please sign in to comment.