style: condition on single line

This commit is contained in:
Dan Wolff 2018-02-04 22:41:39 +01:00
parent 996518a0de
commit 1af9b79b63

View File

@ -4829,8 +4829,7 @@ merge(Compressor.prototype, {
return make_node(self.operator[0] == "=" ? AST_True : AST_False, self);
}
// void 0 == x => null == x
else if (!is_strict_comparison
&& is_undefined(self.left, compressor)) {
else if (!is_strict_comparison && is_undefined(self.left, compressor)) {
self.left = make_node(AST_Null, self.left);
}
break;