Skip to content

Commit

Permalink
It is always a boolean expression so we do not care about the terms
Browse files Browse the repository at this point in the history
  • Loading branch information
zimmski committed Jan 3, 2015
1 parent b4485d5 commit bd38eb4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions mutator/expression/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ func (m *MutatorRemoveTerm) check(node ast.Node) (*ast.BinaryExpr, bool) {
return nil, false
}

_, xBinary := n.X.(*ast.BinaryExpr)
_, xParen := n.X.(*ast.ParenExpr)
_, yBinary := n.Y.(*ast.BinaryExpr)
_, yParen := n.Y.(*ast.ParenExpr)
if (!xBinary && !xParen) || (!yBinary && !yParen) {
return nil, false
}

return n, true
}

Expand Down

0 comments on commit bd38eb4

Please sign in to comment.