ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Code inspection: Redundant operand in logical conditional expression

Last modified: 08 April 2024

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: