File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
csharp/ql/src/Bad Practices/Control-Flow Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -119,14 +119,14 @@ class ConstantMatchingCondition extends ConstantCondition {
119
119
}
120
120
121
121
override predicate isWhiteListed ( ) {
122
- exists ( Switch se , Case c , int i | c = se . getCase ( i ) |
123
- c . getPattern ( ) = this . ( DiscardExpr ) and
124
- (
125
- i > 0
126
- or
127
- i = 0 and
128
- exists ( Expr cond | c . getCondition ( ) = cond and not isConstantCondition ( cond , true ) )
129
- )
122
+ exists ( Switch se , Case c , int i |
123
+ c = se . getCase ( i ) and
124
+ c . getPattern ( ) = this . ( DiscardExpr )
125
+ |
126
+ i > 0
127
+ or
128
+ i = 0 and
129
+ exists ( Expr cond | c . getCondition ( ) = cond and not isConstantCondition ( cond , true ) )
130
130
)
131
131
or
132
132
this = any ( PositionalPatternExpr ppe ) .getPattern ( _)
You can’t perform that action at this time.
0 commit comments