use short variable assignment

This commit is contained in:
Patrick Bogen 2016-03-03 09:46:50 -08:00
parent 2062fbae0f
commit 250344b344
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ func (p *parser) expr() Expr {
func (p *parser) balance(lhs Expr, op itemType, rhs Expr, vecMatching *VectorMatching, returnBool bool) *BinaryExpr {
if lhsBE, ok := lhs.(*BinaryExpr); ok && lhsBE.Op.precedence() < op.precedence() {
var balanced = p.balance(lhsBE.RHS, op, rhs, vecMatching, returnBool)
balanced := p.balance(lhsBE.RHS, op, rhs, vecMatching, returnBool)
if lhsBE.Op.isComparisonOperator() && !lhsBE.ReturnBool && balanced.Type() == model.ValScalar && lhsBE.LHS.Type() == model.ValScalar {
p.errorf("comparisons between scalars must use BOOL modifier")
}