Skip to content

Commit a195ea9

Browse files
committed
Ruby: only drop to CFG layer for getConstantValue()
1 parent cf4a3e0 commit a195ea9

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
@@ -56,7 +56,7 @@ class Node extends TNode {
5656
Node getASuccessor() { localFlowStep(this, result) }
5757

5858
/** Gets the constant value of this expression, if any. */
59-
ConstantValue getConstantValue() { result = this.asExpr().getExpr().getConstantValue() }
59+
ConstantValue getConstantValue() { result = this.asExpr().getConstantValue() }
6060

6161
/**
6262
* Gets the callable corresponding to this block, lambda expression, or call to `proc` or `lambda`.

0 commit comments

Comments
 (0)