From 58c4861c569badf6b0e777d02a5e075c632eac96 Mon Sep 17 00:00:00 2001 From: nickofolas <60761231+nickofolas@users.noreply.github.com> Date: Wed, 13 Apr 2022 14:45:26 -0500 Subject: [PATCH] lint --- src/ScriptEditor/ui/themes.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ScriptEditor/ui/themes.ts b/src/ScriptEditor/ui/themes.ts index 7b9f63973..089c2f5b9 100644 --- a/src/ScriptEditor/ui/themes.ts +++ b/src/ScriptEditor/ui/themes.ts @@ -89,9 +89,7 @@ export const sanitizeTheme = (theme: IScriptEditorTheme): void => { for (const [k, v] of Object.entries(block)) { if (typeof v === "object") { repairBlock(v as { [key: string]: string }); - } else { - if (!v.match(colorRegExp)) block[k] = "FF0000"; - } + } else if (!v.match(colorRegExp)) block[k] = "FF0000"; } }; repairBlock(v);