From: fisker Cheung Date: Sun, 13 Oct 2019 00:12:09 +0000 (+0800) Subject: chore: remove useless else (#245) X-Git-Tag: v3.0.0-alpha.0~463 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=971cebc61c8724875826658cb4801d1d72a35c4a;p=thirdparty%2Fvuejs%2Fcore.git chore: remove useless else (#245) --- diff --git a/packages/runtime-core/src/suspense.ts b/packages/runtime-core/src/suspense.ts index c852f424b9..0fdab92bec 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) } - } else { - return { - content: normalizeVNode(children as VNodeChild), - fallback: normalizeVNode(null) - } + } + + return { + content: normalizeVNode(children as VNodeChild), + fallback: normalizeVNode(null) } }