From 8e5ea98ccda7784edc4feee9a20ca2f32de405f0 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sat, 12 Oct 2019 22:52:11 -0400 Subject: [PATCH] Revert "chore: remove useless else (#245)" (#257) This reverts commit 971cebc61c8724875826658cb4801d1d72a35c4a. --- packages/runtime-core/src/suspense.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/runtime-core/src/suspense.ts b/packages/runtime-core/src/suspense.ts index 0fdab92b..c852f424 100644 --- a/packages/runtime-core/src/suspense.ts +++ b/packages/runtime-core/src/suspense.ts @@ -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) + } } }