Skip to content

Commit 8716790

Browse files
committed
deduplicate - and slightly optimize IndirectInclusionTest
1 parent 6d05b40 commit 8716790

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

javascript/ql/src/semmle/javascript/InclusionTests.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ module InclusionTest {
7171
count(this.getACallee()) = 1 and
7272
count(callee.getAReturnedExpr()) = 1 and
7373
not this.isImprecise() and
74-
inner.getContainerNode().getALocalSource().getEnclosingExpr() = callee.getAParameter() and
75-
inner.getContainedNode().getALocalSource().getEnclosingExpr() = callee.getAParameter()
74+
inner.getContainerNode().getALocalSource() = DataFlow::parameterNode(callee.getAParameter())
7675
}
7776

7877
override DataFlow::Node getContainerNode() {

0 commit comments

Comments
 (0)