Browse Source

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

夜宴 6 years ago
parent
commit
8a4412077c
1 changed files with 1 additions and 1 deletions
  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.`)
         }