remove double condition

pull/1864/head
Rich Harris 7 years ago
parent 76016581da
commit d5d854c51a

@ -479,17 +479,15 @@ export default class EachBlockWrapper extends Wrapper {
} }
const update = deindent` const update = deindent`
if (${condition}) { ${this.vars.each_block_value} = ${snippet};
${this.vars.each_block_value} = ${snippet};
for (var #i = ${start}; #i < ${this.vars.each_block_value}.${length}; #i += 1) { for (var #i = ${start}; #i < ${this.vars.each_block_value}.${length}; #i += 1) {
const child_ctx = ${this.vars.get_each_context}(ctx, ${this.vars.each_block_value}, #i); const child_ctx = ${this.vars.get_each_context}(ctx, ${this.vars.each_block_value}, #i);
${forLoopBody} ${forLoopBody}
}
${destroy}
} }
${destroy}
`; `;
if (bail) { if (bail) {

Loading…
Cancel
Save