Duplicate if-else-if condition
Do not repeat the same test in an if-else-if chain.
#Metadata
#Why it matters
Duplicate conditions create unreachable branches and usually indicate a copy-paste defect.
#Remediation
Remove the duplicate branch or change the condition to the intended distinct test.
#Repository path
The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.correctness.duplicate-if-else-condition.rule.yaml.