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

4616cef3-6eaf-1ab6-6071-d629443dfbf0
cached: 02/22/2017 3:21:18.000 PM