mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Delete redundant checks in verifiesSignature()
This commit is contained in:
@@ -86,8 +86,6 @@ private module PyJWT {
|
||||
}
|
||||
|
||||
override predicate verifiesSignature() {
|
||||
this.hasNoVerifyArgumentOrOptions()
|
||||
or
|
||||
not this.hasVerifySetToFalse() and
|
||||
not this.hasVerifySignatureSetToFalse()
|
||||
}
|
||||
|
||||
@@ -87,9 +87,6 @@ private module PythonJose {
|
||||
}
|
||||
|
||||
override predicate verifiesSignature() {
|
||||
// jwt.decode(token, "key", "HS256")
|
||||
this.hasNoOptions()
|
||||
or
|
||||
// jwt.decode(token, key, options={"verify_signature": False})
|
||||
not this.hasVerifySignatureSetToFalse()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user