Skip to content

Commit c327e6f

Browse files
committed
Remove type enforcement on the TValueNode
1 parent f0dfa51 commit c327e6f

File tree

1 file changed

+1
-3
lines changed
  • javascript/ql/lib/semmle/javascript

1 file changed

+1
-3
lines changed

javascript/ql/lib/semmle/javascript/AMD.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ class AmdModuleDefinition extends CallExpr instanceof AmdModuleDefinition::Range
9191
Function getFactoryFunction() { TValueNode(result) = this.getFactoryNodeInternal() }
9292

9393
private EarlyStageNode getFactoryNodeInternal() {
94-
exists(Function factoryFunction | factoryFunction = this.getArgument(_) |
95-
result = TValueNode(factoryFunction)
96-
)
94+
result = TValueNode(this.getArgument(_))
9795
or
9896
DataFlow::localFlowStep(result, this.getFactoryNodeInternal())
9997
}

0 commit comments

Comments
 (0)