From 048884bb785a04de94df2b62f5d8beaa2dfa239c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Loba=C4=8Devski?= Date: Mon, 15 Jun 2026 06:12:45 +0000 Subject: [PATCH] Remove redundant cast --- actions/ql/lib/codeql/actions/security/ControlChecks.qll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/ql/lib/codeql/actions/security/ControlChecks.qll b/actions/ql/lib/codeql/actions/security/ControlChecks.qll index bf289b85f2d..d7562a61895 100644 --- a/actions/ql/lib/codeql/actions/security/ControlChecks.qll +++ b/actions/ql/lib/codeql/actions/security/ControlChecks.qll @@ -83,7 +83,7 @@ abstract class ControlCheck extends AstNode { ( this.(Step).getAFollowingStep() = node.getEnclosingStep() or - node.getEnclosingJob().getANeededJob().(LocalJob).getAStep() = this.(Step) + node.getEnclosingJob().getANeededJob().(LocalJob).getAStep() = this ) or // When the node is inside a reusable workflow, check if the control check @@ -105,7 +105,7 @@ abstract class ControlCheck extends AstNode { ) or (this instanceof Run or this instanceof UsesStep) and - caller.getANeededJob().(LocalJob).getAStep() = this.(Step) + caller.getANeededJob().(LocalJob).getAStep() = this ) ) }