Skip to content

Commit fac2769

Browse files
committed
JS: Replace an exists+concat with an equivalent strictconcat
1 parent 0e31439 commit fac2769

File tree

1 file changed

+1
-2
lines changed
  • javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling

1 file changed

+1
-2
lines changed

javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ private string getTokenFeature(DataFlow::Node endpoint, string featureName) {
2525
result = unique(string x | x = FunctionBodies::getBodyTokenFeatureForEntity(entity))
2626
)
2727
or
28-
exists(getACallBasedTokenFeatureComponent(endpoint, _, featureName)) and
2928
result =
30-
concat(DataFlow::CallNode call, string component |
29+
strictconcat(DataFlow::CallNode call, string component |
3130
component = getACallBasedTokenFeatureComponent(endpoint, call, featureName)
3231
|
3332
component, " "

0 commit comments

Comments
 (0)