A condition that always evaluates to true or always evaluates to false can be removed, thereby simplifying the program logic. If the condition is a loop condition, consider rewriting the loop using bounded iteration (for example, a foreach loop), if possible.

Avoid constant conditions where possible, and either eliminate the conditions or replace them.

In the following example, the condition a > a is constantly false, so Max(x, y) always returns x.

The revised example replaces the condition with a > b.