remove redundant if statement

pull/1887/head
Rich Harris 6 years ago
parent 327a58128a
commit d55e85dcdf

@ -174,9 +174,7 @@ export default class AwaitBlockWrapper extends Wrapper {
block.builders.mount.addBlock(deindent` block.builders.mount.addBlock(deindent`
${info}.block.${hasTransitions ? 'i' : 'm'}(${initialMountNode}, ${info}.anchor = ${anchorNode}); ${info}.block.${hasTransitions ? 'i' : 'm'}(${initialMountNode}, ${info}.anchor = ${anchorNode});
${info}.mount = () => ${updateMountNode}; ${info}.mount = () => ${updateMountNode};
if (${info}.anchor == null) { ${info}.anchor = ${anchor};
${info}.anchor = ${anchor};
}
`); `);
const conditions = []; const conditions = [];

Loading…
Cancel
Save