chore: remove useless else (#245)

This commit is contained in:
fisker Cheung 2019-10-13 08:12:09 +08:00 committed by Evan You
parent 46e64b257c
commit 971cebc61c

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