Skip to content

Commit

Permalink
fix: filter out empty rules
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Jul 12, 2022
1 parent e3e6fa1 commit 032a0cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/comment-templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ${limitReached ?
Reached maximum result count ${maxResultCount}.
Showing ${limitedResults.length}/${results.length}
` : ''}
Rules:${rules.map(formatRule).join('')}
Rules:${rules.filter(Boolean).map(formatRule).join('')}
<details>
<summary>Click to expand</summary>
Expand Down

0 comments on commit 032a0cd

Please sign in to comment.