Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 381 Bytes

incorrectLogicOperator.md

File metadata and controls

11 lines (6 loc) · 381 Bytes

Pattern: Redundant logical disjunction

Issue: -

Description

Logical disjunction always evaluates to true: foo > 3 && foo < 4. Are these conditions necessary? Did you intend to use && instead? Are the numbers correct? Are you comparing the correct variables?

Further Reading