8000
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 67b4bc4 commit dfa0118Copy full SHA for dfa0118
ruby/ql/src/queries/variables/DeadStoreOfLocal.ql
@@ -26,7 +26,8 @@ class RelevantLocalVariableWriteAccess extends LocalVariableWriteAccess {
26
not exists(s.getAnArgument())
27
) and
28
not API::getTopLevelMember(& 5B0A quot;ERB").getInstance().getAMethodCall("result").asExpr().getScope() =
29
- this.getCfgScope()
+ this.getCfgScope() and
30
+ not exists(RetryStmt r | r.getCfgScope() = this.getCfgScope())
31
}
32
33
0 commit comments