From c5a5ed9aab2da798307b2d1d02c125a4571aaf9e Mon Sep 17 00:00:00 2001 From: bracesproul Date: Tue, 23 Apr 2024 13:33:05 -0700 Subject: [PATCH] lint --- src/components/InstructionsWithCode.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/InstructionsWithCode.js b/src/components/InstructionsWithCode.js index d1861269..3fd499a1 100644 --- a/src/components/InstructionsWithCode.js +++ b/src/components/InstructionsWithCode.js @@ -69,15 +69,15 @@ export function ShellBlock(content, value = "shell", label = "Shell") { * @returns {string} The formatted code */ function formatCode(code, language) { - language = language.toLowerCase(); - if (language === "python") { + const languageLower = language.toLowerCase(); + if (languageLower === "python") { // no-op - Do not format Python code at this time return code; } try { const formattedCode = prettier.format(code, { - parser: language, + parser: languageLower, plugins: [parserTypeScript], });