From e8ee163fdd4e41147b0e6d697e86914fea211857 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 8 Oct 2019 15:58:35 -0400 Subject: [PATCH] chore: remove unnecessary type cast --- packages/compiler-core/src/parse.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/compiler-core/src/parse.ts b/packages/compiler-core/src/parse.ts index 7689850b..54e97801 100644 --- a/packages/compiler-core/src/parse.ts +++ b/packages/compiler-core/src/parse.ts @@ -334,10 +334,7 @@ function parseElement( // Children. ancestors.push(element) - const mode = (context.options.getTextMode( - element.tag, - element.ns - ) as unknown) as TextModes + const mode = context.options.getTextMode(element.tag, element.ns) const children = parseChildren(context, mode, ancestors) ancestors.pop()