From d55e85dcdf58b3612d7298e18b60363d203f06b7 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 15 Dec 2018 18:07:46 -0500 Subject: [PATCH] remove redundant if statement --- src/compile/render-dom/wrappers/AwaitBlock.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compile/render-dom/wrappers/AwaitBlock.ts b/src/compile/render-dom/wrappers/AwaitBlock.ts index 50320ee8b6..137e34b23e 100644 --- a/src/compile/render-dom/wrappers/AwaitBlock.ts +++ b/src/compile/render-dom/wrappers/AwaitBlock.ts @@ -174,9 +174,7 @@ export default class AwaitBlockWrapper extends Wrapper { block.builders.mount.addBlock(deindent` ${info}.block.${hasTransitions ? 'i' : 'm'}(${initialMountNode}, ${info}.anchor = ${anchorNode}); ${info}.mount = () => ${updateMountNode}; - if (${info}.anchor == null) { - ${info}.anchor = ${anchor}; - } + ${info}.anchor = ${anchor}; `); const conditions = [];