Skip to content

Commit 1617ace

Browse files
baywetCopilot
andauthored
chore: applies review suggestions
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 6d867e1 commit 1617ace

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

csharp/ql/lib/Linq/Helpers.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private int numStmts(ForeachStmt fes) {
2323
private predicate returnsLoopVariable(ForeachStmt fes, Stmt s) {
2424
exists(ReturnStmt ret |
2525
ret = s.stripSingletonBlocks() and
26-
ret.getExpr().stripCasts().(VariableAccess).getTarget() = fes.getVariable()
26+
ret.getExpr().stripImplicit().(VariableAccess).getTarget() = fes.getVariable()
2727
)
2828
}
2929

0 commit comments

Comments
 (0)