We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3784b18 commit 45797dcCopy full SHA for 45797dc
javascript/ql/src/Declarations/DeadStoreOfLocal.ql
@@ -65,7 +65,7 @@ where
65
// the term "definition" when the alert location is a variable declaration.
66
if
67
dead instanceof VariableDeclarator and
68
- not exists(SsaImplicitInit init | init.getVariable().getSourceVariable() = v) // the variable is dead at the hoisted implicit initialization.
+ not exists(SsaImplicitInit init | init.getVariable().getSourceVariable() = v) // the variable is dead at the hoisted implicit initialization.
69
then msg = "The initial value of " + v.getName() + " is unused, since it is always overwritten."
70
else msg = "The value assigned to " + v.getName() + " here is unused."
71
)
0 commit comments