From fe1908ee849f0b358414af6e1aa81eac302a3176 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Tue, 10 Jul 2018 21:46:25 -0400 Subject: [PATCH] tidying --- src/compile/nodes/IfBlock.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/compile/nodes/IfBlock.ts b/src/compile/nodes/IfBlock.ts index 23ac29166e..4852950429 100644 --- a/src/compile/nodes/IfBlock.ts +++ b/src/compile/nodes/IfBlock.ts @@ -208,14 +208,7 @@ export default class IfBlock extends Node { const updateMountNode = this.getUpdateMountNode(anchor); const changeBlock = deindent` - ${hasElse - ? deindent` - ${name}.d(1); - ` - : deindent` - if (${name}) { - ${name}.d(1); - }`} + ${if_name}${name}.d(1); ${name} = ${current_block_type_and}${current_block_type}(#component, ctx); ${if_name}${name}.c(); ${if_name}${name}.${mountOrIntro}(${updateMountNode}, ${anchor});