Revert "chore: remove useless else (#245)" (#257)

This reverts commit 971cebc61c.
This commit is contained in:
Evan You 2019-10-12 22:52:11 -04:00 committed by GitHub
parent 971cebc61c
commit 8e5ea98ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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)
}
}
}