Skip to content

Commit 25d09cd

Browse files
committed
Ruby: Simplify getKeywordArgumentIncludeHashArgument
As suggested by @hvitved in review
1 parent eccc7d6 commit 25d09cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPublic.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class CallNode extends LocalSourceNode, ExprNode {
118118
.asExpr()
119119
.(CfgNodes::ExprNodes::HashLiteralCfgNode)
120120
.getAKeyValuePair() and
121-
exprNode(pair.getKey()).getALocalSource().asExpr().getConstantValue().isStringlikeValue(name) and
121+
pair.getKey().getConstantValue().isStringlikeValue(name) and
122122
result.asExpr() = pair.getValue()
123123
)
124124
}

0 commit comments

Comments
 (0)