chore: remove redundant Non-Null Assertion (#728)

This commit is contained in:
夜宴 2020-02-16 00:33:22 +08:00 committed by GitHub
parent 4669215ca2
commit 8a4412077c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,7 +217,7 @@ export function createAppAPI<HostNode, HostElement>(
unmount() {
if (isMounted) {
render(null, app._container!)
render(null, app._container)
} else if (__DEV__) {
warn(`Cannot unmount an app that is not mounted.`)
}