We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0dfa51 commit c327e6fCopy full SHA for c327e6f
1 file changed
javascript/ql/lib/semmle/javascript/AMD.qll
@@ -91,9 +91,7 @@ class AmdModuleDefinition extends CallExpr instanceof AmdModuleDefinition::Range
91
Function getFactoryFunction() { TValueNode(result) = this.getFactoryNodeInternal() }
92
93
private EarlyStageNode getFactoryNodeInternal() {
94
- exists(Function factoryFunction | factoryFunction = this.getArgument(_) |
95
- result = TValueNode(factoryFunction)
96
- )
+ result = TValueNode(this.getArgument(_))
97
or
98
DataFlow::localFlowStep(result, this.getFactoryNodeInternal())
99
}
0 commit comments