Skip to content

Commit 4210973

Browse files
alexrfordaibaars
andauthored
ruby: drop unnecessary getExpr
Co-authored-by: Arthur Baars <[email protected]>
1 parent b956616 commit 4210973

File tree

1 file changed

+2
-2
lines changed
  • ruby/ql/lib/codeql/ruby/experimental

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ module Rbi {
7575
* Gets the type aliased by this call.
7676
*/
7777
RbiType getAliasedType() {
78-
result.asExpr().getExpr() =
79-
this.getBlock().asExpr().(ExprNodes::StmtSequenceCfgNode).getExpr().getLastStmt()
78+
result.asExpr() =
79+
this.getBlock().asExpr().(ExprNodes::StmtSequenceCfgNode).getLastStmt()
8080
}
8181
}
8282

0 commit comments

Comments
 (0)