Skip to content

Commit 687602b

Browse files
committed
ruby: drop a TODO
1 parent 4210973 commit 687602b

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
@@ -70,13 +70,11 @@ module Rbi {
7070
class RbiTypeAlias extends RbiType, DataFlow::CallNode {
7171
RbiTypeAlias() { this = API::getTopLevelMember("T").getAMethodCall("type_alias") }
7272

73-
// TODO: avoid mapping to AST layer
7473
/**
7574
* Gets the type aliased by this call.
7675
*/
7776
RbiType getAliasedType() {
78-
result.asExpr() =
79-
this.getBlock().asExpr().(ExprNodes::StmtSequenceCfgNode).getLastStmt()
77+
result.asExpr() = this.getBlock().asExpr().(ExprNodes::StmtSequenceCfgNode).getLastStmt()
8078
}
8179
}
8280

0 commit comments

Comments
 (0)