Explorar o código

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

夜宴 %!s(int64=6) %!d(string=hai) anos
pai
achega
8a4412077c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/runtime-core/src/apiCreateApp.ts

+ 1 - 1
packages/runtime-core/src/apiCreateApp.ts

@@ -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.`)
         }