Remove unneeded space check.

This commit is contained in:
Logan Smyth 2016-04-30 14:47:56 -07:00
parent 1514d0a1ad
commit 5c74ebb87e
2 changed files with 2 additions and 9 deletions

View File

@ -1,7 +1,5 @@
import * as t from "babel-types";
const NON_ALPHABETIC_UNARY_OPERATORS = t.UPDATE_OPERATORS.concat(t.NUMBER_UNARY_OPERATORS).concat(["!"]);
export function WithStatement(node: Object) {
this.keyword("with");
this.token("(");
@ -113,12 +111,7 @@ function buildLabelStatement(prefix, key = "label") {
let label = node[key];
if (label) {
if (!(this.format.minified && ((t.isUnaryExpression(label, { prefix: true }) ||
t.isUpdateExpression(label, { prefix: true })) &&
NON_ALPHABETIC_UNARY_OPERATORS.indexOf(label.operator) > -1))) {
this.push(" ");
}
this.space();
let terminatorState = this.startTerminatorless();
this.print(label, node);

View File

@ -1,4 +1,4 @@
function foo(l){
return (
return(
l);}