mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
Simplify DataFlow::PairNode
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com>
This commit is contained in:
@@ -33,7 +33,7 @@ module Jwt {
|
||||
override DataFlow::Node getPayload() { result = this.getArgument(0) }
|
||||
|
||||
override DataFlow::Node getAlgorithm() {
|
||||
result.asExpr().getExpr() = this.getArgument(3).asExpr().getExpr().(Pair).getValue() or
|
||||
result = this.getArgument(3).(DataFlow::PairNode).getValue() or
|
||||
result =
|
||||
this.getArgument(3)
|
||||
.(DataFlow::HashLiteralNode)
|
||||
|
||||
Reference in New Issue
Block a user