From 65513b8cd27731e5dc4d3794df6bf2bdf2af669a Mon Sep 17 00:00:00 2001 From: Owen Mansel-Chan Date: Wed, 3 Jun 2026 16:38:46 +0100 Subject: [PATCH] Incidental fix to `CaseClause.getAnExpr()` --- go/ql/lib/semmle/go/Stmt.qll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/ql/lib/semmle/go/Stmt.qll b/go/ql/lib/semmle/go/Stmt.qll index aa6fe7c24de..8deadd55512 100644 --- a/go/ql/lib/semmle/go/Stmt.qll +++ b/go/ql/lib/semmle/go/Stmt.qll @@ -761,7 +761,7 @@ class CaseClause extends @caseclause, Stmt, ScopeNode { * * Note that the default clause does not have any expressions. */ - Expr getAnExpr() { result = this.getAChildExpr() } + Expr getAnExpr() { result = this.getExpr(_) } /** * Gets the number of expressions of this `case` clause.