chore: remove unnecessary type cast

This commit is contained in:
Evan You 2019-10-08 15:58:35 -04:00
parent eadcaead37
commit e8ee163fdd

View File

@ -334,10 +334,7 @@ function parseElement(
// Children. // Children.
ancestors.push(element) ancestors.push(element)
const mode = (context.options.getTextMode( const mode = context.options.getTextMode(element.tag, element.ns)
element.tag,
element.ns
) as unknown) as TextModes
const children = parseChildren(context, mode, ancestors) const children = parseChildren(context, mode, ancestors)
ancestors.pop() ancestors.pop()