]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: remove useless else (#245)
authorfisker Cheung <lionkay@gmail.com>
Sun, 13 Oct 2019 00:12:09 +0000 (08:12 +0800)
committerEvan You <yyx990803@gmail.com>
Sun, 13 Oct 2019 00:12:09 +0000 (20:12 -0400)
packages/runtime-core/src/suspense.ts

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