use space helper instead of pushing a space in IfStatement generation
This commit is contained in:
parent
d7bea2f325
commit
5ff0285ba7
@ -21,7 +21,7 @@ exports.IfStatement = function (node, print) {
|
||||
print.indentOnComments(node.consequent);
|
||||
|
||||
if (node.alternate) {
|
||||
if (this.isLast("}")) this.push(" ");
|
||||
if (this.isLast("}")) this.space();
|
||||
this.keyword("else");
|
||||
|
||||
if (this.format.format && !t.isBlockStatement(node.alternate)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user