Skip to content

Commit

Permalink
Change code block logging format for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumManiac committed Feb 5, 2024
1 parent 3a0f17c commit 9f650c4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/classes/SlackLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ export class SlackLogger {
* @returns The formatted code block content
*/
private formatcodeBlockContent(codeBlockContent: unknown): string {
if (codeBlockContent instanceof Error) {
return `\`\`\`${codeBlockContent.message}\`\`\``;
} else {
return `\`\`\`${codeBlockContent}\`\`\``;
}
return `\`\`\`${codeBlockContent}\`\`\``;
}
}

0 comments on commit 9f650c4

Please sign in to comment.