Skip to content

Commit 476562e

Browse files
Fixes based on the PR comments
1 parent b51c6d6 commit 476562e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

csharp/ql/src/experimental/Security Features/JsonWebTokenHandler/JsonWebTokenHandlerLib.qll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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
245242
predicate 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

0 commit comments

Comments
 (0)