Closed RalfKoban closed 3 weeks ago
We should report AND / OR conditions that do the same comparison on both sides (left and right).
Example for AND:
if (x == 42 && x == 42)
Example for OR:
if (x == 42 || x == 42)
Both should be fixed to:
if (x == 42)
Be also aware of unneeded parenthesis on one side:
if (x == 42 || (x == 42))
PR contained wrong ID, so this is not resolved
We should report AND / OR conditions that do the same comparison on both sides (left and right).
Example for AND:
Example for OR:
Both should be fixed to:
Be also aware of unneeded parenthesis on one side: