- This is not the released version of the documentation. Recommended Version
- Tags:
- analysis
- control structure
- if
CA017 - Empty conditional
Description
An empty conditional instruction is useless and should be removed.
- Scope InstructionStatus EnabledSeverity WarningApplicability AllScore 50
Example of violation
Recommendation
Remove the useless conditional. In the example, simply keep:
Back to Rules