Skip to content

Commit 048884b

Browse files
committed
Remove redundant cast
1 parent 2eed6c1 commit 048884b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

actions/ql/lib/codeql/actions/security/ControlChecks.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ abstract class ControlCheck extends AstNode {
8383
(
8484
this.(Step).getAFollowingStep() = node.getEnclosingStep()
8585
or
86-
node.getEnclosingJob().getANeededJob().(LocalJob).getAStep() = this.(Step)
86+
node.getEnclosingJob().getANeededJob().(LocalJob).getAStep() = this
8787
)
8888
or
8989
// When the node is inside a reusable workflow, check if the control check
@@ -105,7 +105,7 @@ abstract class ControlCheck extends AstNode {
105105
)
106106
or
107107
(this instanceof Run or this instanceof UsesStep) and
108-
caller.getANeededJob().(LocalJob).getAStep() = this.(Step)
108+
caller.getANeededJob().(LocalJob).getAStep() = this
109109
)
110110
)
111111
}

0 commit comments

Comments
 (0)