Skip to content

Commit

Permalink
refactor: Remove unnecessary fail safe
Browse files Browse the repository at this point in the history
  • Loading branch information
maxreichmann committed Dec 3, 2024
1 parent ec8af44 commit a4e84fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formatter/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Markdown {
messages.forEach((msg) => {
const severity = this.formatSeverity(msg.severity, msg.fatal);
const location = this.formatLocation(msg.line, msg.column);
const rule = msg.ruleId ?? "n/a";
const rule = msg.ruleId;
let details;
if (showDetails) {
details = ` ${this.formatMessageDetails(msg)} |`;
Expand Down

0 comments on commit a4e84fc

Please sign in to comment.