separate if statements in codebuilder

pull/7738/head
Rich-Harris 9 years ago
parent 6f5f961c8a
commit b4115ac2ec

@ -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