Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 337 Bytes

CollapsibleIfStatements.md

File metadata and controls

8 lines (6 loc) · 337 Bytes

CollapsibleIfStatements

Category: pmd
Rule Key: pmd:CollapsibleIfStatements

⚠️ This rule is deprecated in favour of S1066.


Sometimes two 'if' statements can be consolidated by separating their conditions with a boolean short-circuit operator.