refactor(components): [only-child] simplify conditions (#8480)

This commit is contained in:
류한경 2022-06-27 11:04:25 +09:00 committed by GitHub
parent 5d88f628bb
commit 9c154e9228
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,6 @@ function findFirstLegitChild(node: VNode[] | undefined): VNode | null {
case Comment:
continue
case Text:
return wrapTextContent(child)
case 'svg':
return wrapTextContent(child)
case Fragment: