tidy formatting

pull/5179/head
Conduitry 5 years ago
parent 76e23b2c60
commit 57aeb3e25c

@ -301,18 +301,15 @@ export default class EachBlockWrapper extends Wrapper {
const has_transitions = !!(this.else.block.has_intro_method || this.else.block.has_outro_method); const has_transitions = !!(this.else.block.has_intro_method || this.else.block.has_outro_method);
const destroy_block_else = this.else.block.has_outro_method const destroy_block_else = this.else.block.has_outro_method
? ? b`
b`
@group_outros(); @group_outros();
@transition_out(${each_block_else}, 1, 1, () => { @transition_out(${each_block_else}, 1, 1, () => {
${each_block_else} = null; ${each_block_else} = null;
}); });
@check_outros(); @check_outros();`
`
: b` : b`
${each_block_else}.d(1); ${each_block_else}.d(1);
${each_block_else} = null; ${each_block_else} = null;`;
`;
if (this.else.block.has_update_method) { if (this.else.block.has_update_method) {
this.updates.push(b` this.updates.push(b`
@ -328,7 +325,6 @@ export default class EachBlockWrapper extends Wrapper {
} }
`); `);
} else { } else {
this.updates.push(b` this.updates.push(b`
if (${this.vars.data_length}) { if (${this.vars.data_length}) {
if (${each_block_else}) { if (${each_block_else}) {

Loading…
Cancel
Save