File tree Expand file tree Collapse file tree
ruby/ql/lib/codeql/ruby/ast Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -397,7 +397,8 @@ class RescueClause extends Expr, TRescueClause {
397397 or
398398 // For 0 or 1 exceptions, exceptions are direct children
399399 not exists ( this .getExceptions ( ) ) and
400- pred = "getException" and result = this .getException ( _)
400+ pred = "getException" and
401+ result = this .getException ( _)
401402 or
402403 // For 2+ exceptions, the ExceptionList node is the direct child
403404 pred = "getExceptions" and result = this .getExceptions ( )
Original file line number Diff line number Diff line change @@ -377,8 +377,7 @@ private module Cached {
377377 TDelimitedSymbolLiteral or TDestructuredLeftAssignment or TDestructuredParameter or
378378 TDivExprReal or TDo or TDoBlock or TElementReference or TElseReal or TElsif or TEmptyStmt or
379379 TEncoding or TEndBlock or TEnsure or TEqExpr or TExceptionList or TExponentExprReal or
380- TFalseLiteral or
381- TFile or TFindPattern or TFloatLiteral or TForExpr or TForwardParameter or
380+ TFalseLiteral or TFile or TFindPattern or TFloatLiteral or TForExpr or TForwardParameter or
382381 TForwardArgument or TGEExpr or TGTExpr or TGlobalVariableAccessReal or
383382 THashKeySymbolLiteral or THashLiteral or THashPattern or THashSplatExprReal or
384383 THashSplatNilParameter or THashSplatParameter or THereDoc or TIdentifierMethodCall or
You can’t perform that action at this time.
0 commit comments