ReSharper
 
Get ReSharper
You are viewing the documentation for an earlier version of ReSharper.

Code Inspection: Redundant operand in logical condition expression

Last modified: 21 July 2022

If the first operand in a conditional OR operator evaluates to false, the value of the entire OR expression is determined by the second operand. Therefore, a constant false as the first operand is redundant and ReSharper suggests removing the expression with the redundant operand: