Skip to content

Commit 3271587

Browse files
baywetCopilot
andauthored
chore: fixes missing break case
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 17412f3 commit 3271587

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎csharp/ql/lib/Linq/Helpers.qll‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ private predicate terminatesCallable(Stmt s) {
2727
or
2828
s.stripSingletonBlocks() instanceof ThrowStmt
2929
or
30+
s.stripSingletonBlocks() instanceof BreakStmt
31+
or
3032
exists(BlockStmt b | b = s.stripSingletonBlocks() | terminatesCallable(b.getLastStmt()))
3133
or
3234
exists(IfStmt nested |

0 commit comments

Comments
 (0)