Skip to content

Commit 15a22e5

Browse files
committed
PS: Make the new return node an acual return node.
1 parent 91a6dce commit 15a22e5

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

powershell/ql/lib/semmle/code/powershell/dataflow/internal/DataFlowPrivate.qll

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -573,14 +573,7 @@ private module ReturnNodes {
573573
)
574574
}
575575

576-
class NormalReturnNode extends ReturnNode instanceof NodeImpl {
577-
NormalReturnNode() {
578-
exists(ReturnContainer container |
579-
container = this.getEnclosingCallable().asCfgScope() and
580-
this = container.getAReturnedNode()
581-
)
582-
}
583-
576+
class NormalReturnNode extends ReturnNode instanceof ReturnNodeImpl {
584577
final override NormalReturnKind getKind() { any() }
585578
}
586579
}

0 commit comments

Comments
 (0)