File tree Expand file tree Collapse file tree
csharp/ql/src/experimental/Security Features/JsonWebTokenHandler Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,10 +32,7 @@ class FalseValueFlowsToTokenValidationParametersPropertyWriteToBypassValidation
3232 }
3333
3434 override predicate isSink ( DataFlow:: Node sink ) {
35- exists ( Assignment a |
36- sink .asExpr ( ) =
37- any ( TokenValidationParametersPropertySensitiveValidation p ) .getAnAssignedValue ( )
38- )
35+ sink .asExpr ( ) = any ( TokenValidationParametersPropertySensitiveValidation p ) .getAnAssignedValue ( )
3936 }
4037}
4138
@@ -245,7 +242,7 @@ class CallableAlwaysReturnsParameter0MayThrowExceptions extends CallableReturnsS
245242predicate isExpressionAlwaysTrue ( Expr e ) {
246243 e .( BoolLiteral ) .getBoolValue ( ) = true
247244 or
248- e .( Expr ) . getValue ( ) = "true"
245+ e .getValue ( ) = "true"
249246 or
250247 e instanceof ConditionalExpr and
251248 isExpressionAlwaysTrue ( e .( ConditionalExpr ) .getThen ( ) ) and
You can’t perform that action at this time.
0 commit comments