separate if statements in codebuilder

pull/491/head
Rich-Harris 8 years ago
parent 3629c9e9a1
commit a59e017fad

@ -16,7 +16,7 @@ export default class CodeBuilder {
this.result += `\n\t${line}`;
} else {
if ( this.lastCondition ) {
this.result += `\n}`;
this.result += `\n}\n\n`;
}
this.result += `if ( ${condition} ) {\n\t${line}`;

Loading…
Cancel
Save