CA017 - Empty conditional

Description

An empty conditional instruction is useless and should be removed.

Scope Instruction
Status Enabled
Severity Warning
Applicability All
Score 50

Example of violation

if x and y then end do_something_else

Recommendation

Remove the useless conditional. In the example, simply keep:

do_something_else

cached: 03/18/2024 11:53:43.000 PM