Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
V7025. It is possible that an...
menu mobile close menu
Additional information
toggle menu Contents

V7025. It is possible that an assigned variable should be checked in the following condition. Consider checking for a typo.

Jun 16 2026

The analyzer has detected a case where the variable may not be checked in the next if statement after an assignment or initialization.

The example:

let ret = foo(....)
if (ret != -1) { .... }
....
let ret2 = bar(....)
if (ret != -1) { .... }    // <=

Often, this may happen due to code copy-pasting, when the variable name is not modified. In this example, ret should be replaced with ret2.

let ret2 = bar(....)
if (ret2 != -1) { .... }