mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Apply suggestions from code review
Co-authored-by: Stephan Brandauer <kaeluka@github.com>
This commit is contained in:
@@ -22,7 +22,7 @@ import experimental.adaptivethreatmodeling.XssATM as XssAtm
|
||||
* `endpoint`. To preserve compatibility with the data pipeline, this relation will instead set
|
||||
* `featureValue` to the empty string in this case.
|
||||
*/
|
||||
query predicate tokenFeatures(DataFlow::Node endpoint, string featureName, string featureValue) {
|
||||
predicate tokenFeatures(DataFlow::Node endpoint, string featureName, string featureValue) {
|
||||
trainingEndpoints(endpoint, _, _) and
|
||||
(
|
||||
EndpointFeatures::tokenFeatures(endpoint, featureName, featureValue)
|
||||
@@ -209,7 +209,7 @@ DataFlow::Configuration getDataFlowCfg(Query query) {
|
||||
}
|
||||
|
||||
// TODO: Delete this once we are no longer surfacing `hasFlowFromSource`.
|
||||
module FlowFromSource {
|
||||
private module FlowFromSource {
|
||||
predicate hasFlowFromSource(DataFlow::Node endpoint, Query q) {
|
||||
exists(Configuration cfg | cfg.getQuery() = q | cfg.hasFlow(_, endpoint))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user