Skip to content

Commit 132b476

Browse files
committed
Ruby: autoformat
1 parent 65b4a43 commit 132b476

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ruby/ql/lib/codeql/ruby/ast/Expr.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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()

ruby/ql/lib/codeql/ruby/ast/internal/AST.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)