From 2f4fe78ed686ae6c1015d445a2b3b919775d2b93 Mon Sep 17 00:00:00 2001 From: Yakup Afsin Date: Tue, 7 Nov 2023 17:18:15 +0000 Subject: [PATCH] Update StyleUtils.ts --- src/styles/StyleUtils.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/styles/StyleUtils.ts b/src/styles/StyleUtils.ts index bb06d33fc28c..e63926482da7 100644 --- a/src/styles/StyleUtils.ts +++ b/src/styles/StyleUtils.ts @@ -610,11 +610,7 @@ function getFontFamilyMonospace({fontStyle, fontWeight}: TextStyle): string { * Returns the font size for the HTML code tag renderer. */ function getCodeFontSize(isInsideH1: Boolean) { - if (isInsideH1) { - return 15; - } else { - return 13; - } + return isInsideH1 ? 15 : 13; } /**