8000 ruby: remove FPs from retry · github/codeql@dfa0118 · GitHub
[go: up one dir, main page]

Skip to content

Commit dfa0118

Browse files
committed
ruby: remove FPs from retry
1 parent 67b4bc4 commit dfa0118

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ruby/ql/src/queries/variables/DeadStoreOfLocal.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class RelevantLocalVariableWriteAccess extends LocalVariableWriteAccess {
2626
not exists(s.getAnArgument())
2727
) and
2828
not API::getTopLevelMember(& 5B0A quot;ERB").getInstance().getAMethodCall("result").asExpr().getScope() =
29-
this.getCfgScope()
29+
this.getCfgScope() and
30+
not exists(RetryStmt r | r.getCfgScope() = this.getCfgScope())
3031
}
3132
}
3233

0 commit comments

Comments
 (0)
0