Apply suggestions from code review

Co-authored-by: Stephan Brandauer <kaeluka@github.com>
This commit is contained in:
Tiferet Gazit
2022-12-02 09:00:45 -08:00
committed by GitHub
parent d17383d98c
commit c0aae3d68e
2 changed files with 2 additions and 2 deletions

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 isSinkCandidate(JS::DataFlow::PathNode sink) {
predicate isSinkCandidateWithFlow(JS::DataFlow::Node sink) {
exists(JS::DataFlow::PathNode source |
this.hasFlowPath(source, sink) and
not AtmResultsInfo::isFlowLikelyInBaseQuery(source.getNode(), sink.getNode())

View File

@@ -23,5 +23,5 @@ private import experimental.adaptivethreatmodeling.XssThroughDomATM as XssThroug
query predicate isSinkCandidateForQuery(
AtmConfig::AtmConfig queryConfig, JS::DataFlow::PathNode sink
) {
queryConfig.isSinkCandidate(sink)
queryConfig.isSinkCandidateWithFlow(sink)
}