The analyzer has detected a suspicious code fragment where both branches of the if statement are identical. This often indicates an error.
The example:
if cond {
result = FirstFunc(val)
} else {
result = FirstFunc(val)
}
Regardless of what the cond expression evaluates to, the same operations will be performed. Such code contains an error.
The fixed code:
if condition {
result = FirstFunc(val)
} else {
result = SecondFunc(val)
}
This diagnostic rule is classified as:
You can look at examples of errors detected by the V8005 diagnostic. |
Was this page helpful?
Your message has been sent. We will email you at
If you do not see the email in your inbox, please check if it is filtered to one of the following folders: