V8005. The 'then' statement is equivalent to the 'else' statement.
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)
}