Skip to content

Commit 027f302

Browse files
committed
Ruby: improve return type
1 parent 8778e88 commit 027f302

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ class CaseElseBranch extends AstNode instanceof CaseElseBranchImpl {
546546
final override string getAPrimaryQlClass() { result = "CaseElseBranch" }
547547

548548
/** Gets the body of this else branch. */
549-
final Stmt getBody() { result = super.getBody() }
549+
final StmtSequence getBody() { result = super.getBody() }
550550

551551
final override string toString() { result = "else ..." }
552552

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,5 @@ class InClauseSynth extends InClauseImpl, TInClauseSynth {
9595
class CaseElseBranchImpl extends AstNode, TCaseElseBranch {
9696
CaseElseBranchImpl() { this = TCaseElseBranchSynth(_, _) }
9797

98-
final Stmt getBody() { synthChild(this, 0, result) }
98+
final StmtSequence getBody() { synthChild(this, 0, result) }
9999
}

0 commit comments

Comments
 (0)