Преглед изворни кода

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

夜宴 пре 6 година
родитељ
комит
8a4412077c
1 измењених фајлова са 1 додато и 1 уклоњено
  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() {
       unmount() {
         if (isMounted) {
         if (isMounted) {
-          render(null, app._container!)
+          render(null, app._container)
         } else if (__DEV__) {
         } else if (__DEV__) {
           warn(`Cannot unmount an app that is not mounted.`)
           warn(`Cannot unmount an app that is not mounted.`)
         }
         }