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.
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()