File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
ruby/ql/lib/codeql/ruby/controlflow/internal Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1399,7 +1399,9 @@ module Trees {
1399
1399
}
1400
1400
1401
1401
private class WhenTree extends ControlFlowTree , WhenClause {
1402
- final override predicate propagatesAbnormal ( AstNode child ) { child = this .getAPattern ( ) }
1402
+ final override predicate propagatesAbnormal ( AstNode child ) {
1403
+ child = [ this .getAPattern ( ) , this .getBody ( ) ]
1404
+ }
1403
1405
1404
1406
final Expr getLastPattern ( ) {
1405
1407
exists ( int i |
@@ -1415,8 +1417,7 @@ module Trees {
1415
1417
c .isValidFor ( this ) and
1416
1418
c .( ConditionalCompletion ) .getValue ( ) = false
1417
1419
or
1418
- last ( this .getBody ( ) , last , c ) and
1419
- c instanceof NormalCompletion
1420
+ last ( this .getBody ( ) , last , c )
1420
1421
}
1421
1422
1422
1423
final override predicate succ ( AstNode pred , AstNode succ , Completion c ) {
You can’t perform that action at this time.
0 commit comments