Skip to content

Commit b956616

Browse files
committed
Ruby: fix alert
1 parent 869d827 commit b956616

File tree

1 file changed

+1
-3
lines changed
  • ruby/ql/lib/codeql/ruby/experimental

1 file changed

+1
-3
lines changed

ruby/ql/lib/codeql/ruby/experimental/Rbi.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ module Rbi {
2626
abstract class RbiType extends DataFlow::Node { }
2727

2828
class ConstantReadAccessAsRbiType extends RbiType {
29-
private ExprNodes::ConstantReadAccessCfgNode acc;
30-
3129
ConstantReadAccessAsRbiType() {
32-
acc = this.asExpr()
30+
this.asExpr() instanceof ExprNodes::ConstantReadAccessCfgNode
3331
// TODO: should this class be more restrictive?
3432
}
3533
}

0 commit comments

Comments
 (0)