From a4e84fc9cf0b86a3296d4ee17913a20b039eab62 Mon Sep 17 00:00:00 2001 From: Max Reichmann Date: Tue, 3 Dec 2024 12:36:18 +0100 Subject: [PATCH] refactor: Remove unnecessary fail safe --- src/formatter/markdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formatter/markdown.ts b/src/formatter/markdown.ts index f811af2d..34e6f087 100644 --- a/src/formatter/markdown.ts +++ b/src/formatter/markdown.ts @@ -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)} |`;