Ensure IF ELSE statements are not surrounded by brackets

This commit is contained in:
Tobie Morgan Hitchcock 2019-05-09 20:36:59 +01:00
parent 5a8feec56b
commit 1b0e9ce86f

View file

@ -802,7 +802,7 @@ func (this Polygon) JSON() string {
func (this SubExpression) String() string { func (this SubExpression) String() string {
switch this.Expr.(type) { switch this.Expr.(type) {
case IfelseStatement: case *IfelseStatement:
return print("%v", this.Expr) return print("%v", this.Expr)
default: default:
return print("(%v)", this.Expr) return print("(%v)", this.Expr)