From 288f1917a5d94168be44d1065ad293370b1832fe Mon Sep 17 00:00:00 2001 From: Josh-Cena Date: Wed, 1 Sep 2021 20:03:48 +0800 Subject: [PATCH] Remove return signatures Signed-off-by: Josh-Cena --- .../docusaurus-theme-classic/src/theme/CodeBlock/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx b/packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx index 923366e4d016..65383d93e380 100644 --- a/packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/CodeBlock/index.tsx @@ -61,7 +61,7 @@ const HighlightDirectives = [ const getHighlightDirectiveRegex = ( languages: readonly HighlightLanguage[] = HighlightLanguages, -): RegExp => { +) => { // to be more reliable, the opening and closing comment must match const commentPattern = languages .map((lang) => { @@ -74,7 +74,7 @@ const getHighlightDirectiveRegex = ( }; // select comment styles based on language -const highlightDirectiveRegex = (lang: string): RegExp => { +const highlightDirectiveRegex = (lang: string) => { switch (lang) { case 'js': case 'javascript':