From 13de893e894a8c03a725570dda16944d143c4821 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Thu, 19 Sep 2019 09:11:43 -0400 Subject: [PATCH] remove some unreachable code --- .../wrappers/InlineComponent/index.ts | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts b/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts index 9c1218079d..356e5c31bf 100644 --- a/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts +++ b/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts @@ -152,21 +152,17 @@ export default class InlineComponentWrapper extends Wrapper { }); } - if (uses_spread) { - attribute_object = initial_props; - } else { - attribute_object = { - type: 'ObjectExpression', - properties: this.node.attributes.map(attr => { - return { - type: 'Property', - kind: 'init', - key: { type: 'Identifier', name: attr.name }, - value: attr.get_value(block) - } - }).concat(initial_props.properties) - } as Expression; - } + attribute_object = { + type: 'ObjectExpression', + properties: this.node.attributes.map(attr => { + return { + type: 'Property', + kind: 'init', + key: { type: 'Identifier', name: attr.name }, + value: attr.get_value(block) + } + }).concat(initial_props.properties) + } as Expression; component_opts.properties.push({ type: 'Property',