From 027f3029321805be88f8b4f370484e8881fbcba4 Mon Sep 17 00:00:00 2001 From: Anders Schack-Mulligen Date: Wed, 17 Jun 2026 08:47:14 +0200 Subject: [PATCH] Ruby: improve return type --- ruby/ql/lib/codeql/ruby/ast/Control.qll | 2 +- ruby/ql/lib/codeql/ruby/ast/internal/Control.qll | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruby/ql/lib/codeql/ruby/ast/Control.qll b/ruby/ql/lib/codeql/ruby/ast/Control.qll index cf7920968c8..ea54d355469 100644 --- a/ruby/ql/lib/codeql/ruby/ast/Control.qll +++ b/ruby/ql/lib/codeql/ruby/ast/Control.qll @@ -546,7 +546,7 @@ class CaseElseBranch extends AstNode instanceof CaseElseBranchImpl { final override string getAPrimaryQlClass() { result = "CaseElseBranch" } /** Gets the body of this else branch. */ - final Stmt getBody() { result = super.getBody() } + final StmtSequence getBody() { result = super.getBody() } final override string toString() { result = "else ..." } diff --git a/ruby/ql/lib/codeql/ruby/ast/internal/Control.qll b/ruby/ql/lib/codeql/ruby/ast/internal/Control.qll index 095fb85de6f..00076ba996a 100644 --- a/ruby/ql/lib/codeql/ruby/ast/internal/Control.qll +++ b/ruby/ql/lib/codeql/ruby/ast/internal/Control.qll @@ -95,5 +95,5 @@ class InClauseSynth extends InClauseImpl, TInClauseSynth { class CaseElseBranchImpl extends AstNode, TCaseElseBranch { CaseElseBranchImpl() { this = TCaseElseBranchSynth(_, _) } - final Stmt getBody() { synthChild(this, 0, result) } + final StmtSequence getBody() { synthChild(this, 0, result) } }