use this.space() instead of manually pushing

This commit is contained in:
Sebastian McKenzie 2015-06-24 13:45:56 +01:00
parent 9db43ca7a9
commit 737abca3a9

View File

@ -33,13 +33,13 @@ export function ForStatement(node, print) {
this.push(";");
if (node.test) {
this.push(" ");
this.space();
print.plain(node.test);
}
this.push(";");
if (node.update) {
this.push(" ");
this.space();
print.plain(node.update);
}