[[Property:title|CA017 - Empty conditional]]
[[Property:link_title|CA017]]
[[Property:weight|0]]
[[Property:uuid|4616cef3-6eaf-1ab6-6071-d629443dfbf0]]
__NOTOC__
=Description=
An empty conditional instruction is useless and should be removed.
:{| class="doctable"
|-
| '''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