diff --git a/src/classes/SlackLogger.ts b/src/classes/SlackLogger.ts index 9d1078d..f2e8dd6 100644 --- a/src/classes/SlackLogger.ts +++ b/src/classes/SlackLogger.ts @@ -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}\`\`\``; } }