Ruby: autoformat

This commit is contained in:
Anders Schack-Mulligen
2026-06-19 13:08:20 +02:00
parent 65b4a4346b
commit 132b476acd
2 changed files with 3 additions and 3 deletions

View File

@@ -397,7 +397,8 @@ class RescueClause extends Expr, TRescueClause {
or
// For 0 or 1 exceptions, exceptions are direct children
not exists(this.getExceptions()) and
pred = "getException" and result = this.getException(_)
pred = "getException" and
result = this.getException(_)
or
// For 2+ exceptions, the ExceptionList node is the direct child
pred = "getExceptions" and result = this.getExceptions()

View File

@@ -377,8 +377,7 @@ private module Cached {
TDelimitedSymbolLiteral or TDestructuredLeftAssignment or TDestructuredParameter or
TDivExprReal or TDo or TDoBlock or TElementReference or TElseReal or TElsif or TEmptyStmt or
TEncoding or TEndBlock or TEnsure or TEqExpr or TExceptionList or TExponentExprReal or
TFalseLiteral or
TFile or TFindPattern or TFloatLiteral or TForExpr or TForwardParameter or
TFalseLiteral or TFile or TFindPattern or TFloatLiteral or TForExpr or TForwardParameter or
TForwardArgument or TGEExpr or TGTExpr or TGlobalVariableAccessReal or
THashKeySymbolLiteral or THashLiteral or THashPattern or THashSplatExprReal or
THashSplatNilParameter or THashSplatParameter or THereDoc or TIdentifierMethodCall or