V7004. The 'then' statement is equivalent to the 'else' statement.
The analyzer has detected a suspicious code fragment where both branches of an if statement are same. This often indicates an error.
The example:
if (cond)
result = firstFunc(val);
else
result = firstFunc(val);
Regardless of the value of the cond expression, the same operations are performed. Most likely, such code contains an error.
The fixed code:
if (cond)
result = firstFunc(val);
else
result = secondFunc(val);