Skip to content

Commit 6525503

Browse files
committed
chore: linting
1 parent c97f0f4 commit 6525503

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

csharp/ql/lib/Linq/Helpers.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ predicate missedFirstOrDefaultOpportunity(ForeachStmtGenericEnumerable fes, IfSt
197197
va = is.getCondition().getAChildExpr*()
198198
) and
199199
not is.getCondition().getAChildExpr*() instanceof AwaitExpr and
200-
exists(ReturnStmt ret, ReturnStmt defaultRet, BlockStmt enclosingBlock, int i |
201-
returnsLoopVariable(fes, is.getThen(), ret) and
200+
exists(ReturnStmt defaultRet, BlockStmt enclosingBlock, int i |
201+
returnsLoopVariable(fes, is.getThen(), _) and
202202
// If no element matches, the method returns the same value that FirstOrDefault would.
203203
returnsDefaultValue(fes, defaultRet) and
204204
enclosingBlock.getStmt(i) = fes and

0 commit comments

Comments
 (0)