Fix error in last commit

This commit is contained in:
tiferet
2022-12-02 09:03:44 -08:00
parent c0aae3d68e
commit d211decfb4

View File

@@ -159,7 +159,7 @@ abstract class AtmConfig extends JS::TaintTracking::Configuration {
* Holds if if `sink` is an effective sink with flow from `source` which gets used as a sink candidate for scoring
* with the ML model.
*/
predicate isSinkCandidateWithFlow(JS::DataFlow::Node sink) {
predicate isSinkCandidateWithFlow(JS::DataFlow::PathNode sink) {
exists(JS::DataFlow::PathNode source |
this.hasFlowPath(source, sink) and
not AtmResultsInfo::isFlowLikelyInBaseQuery(source.getNode(), sink.getNode())