]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
Revert "chore: remove useless else (#245)" (#257)
authorEvan You <yyx990803@gmail.com>
Sun, 13 Oct 2019 02:52:11 +0000 (22:52 -0400)
committerGitHub <noreply@github.com>
Sun, 13 Oct 2019 02:52:11 +0000 (22:52 -0400)
This reverts commit 971cebc61c8724875826658cb4801d1d72a35c4a.

packages/runtime-core/src/suspense.ts

index 0fdab92bec6b2889ad6be44cdeb6eb280f956a41..c852f424b9cef155b0d05296d7963b8a04d46809 100644 (file)
@@ -68,10 +68,10 @@ export function normalizeSuspenseChildren(
       content: normalizeVNode(isFunction(d) ? d() : d),
       fallback: normalizeVNode(isFunction(fallback) ? fallback() : fallback)
     }
-  }
-
-  return {
-    content: normalizeVNode(children as VNodeChild),
-    fallback: normalizeVNode(null)
+  } else {
+    return {
+      content: normalizeVNode(children as VNodeChild),
+      fallback: normalizeVNode(null)
+    }
   }
 }