Skip to content

Commit dfa0118

Browse files
committedMar 31, 2025
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

+2-1
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("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)