Skip to content

Commit 122881d

Browse files
Simplify DataFlow::PairNode
Co-authored-by: Alex Ford <[email protected]>
1 parent d4f6111 commit 122881d

File tree

1 file changed

+1
-1
lines changed
  • ruby/ql/lib/codeql/ruby/frameworks

1 file changed

+1
-1
lines changed

ruby/ql/lib/codeql/ruby/frameworks/Jwt.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module Jwt {
3333
override DataFlow::Node getPayload() { result = this.getArgument(0) }
3434

3535
override DataFlow::Node getAlgorithm() {
36-
result.asExpr().getExpr() = this.getArgument(3).asExpr().getExpr().(Pair).getValue() or
36+
result = this.getArgument(3).(DataFlow::PairNode).getValue() or
3737
result =
3838
this.getArgument(3)
3939
.(DataFlow::HashLiteralNode)

0 commit comments

Comments
 (0)