0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

remove redundant if statement

This commit is contained in:
Rich Harris 2018-12-15 18:07:46 -05:00
parent 327a58128a
commit d55e85dcdf

View File

@ -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 = [];