JavaScript: Remove omittable exists variables

This commit is contained in:
Tony Torralba
2022-12-21 16:33:15 +01:00
parent 32471d326e
commit 3b6dae41cd
20 changed files with 36 additions and 57 deletions

View File

@@ -14,8 +14,6 @@ import CandidateTracking
from Http::RouteSetupCandidate setup
where
not setup instanceof Http::RouteSetup and
exists(Http::RouteHandlerCandidate rh |
track(rh, DataFlow::TypeTracker::end()).flowsTo(setup.getARouteHandlerArg())
)
track(_, DataFlow::TypeTracker::end()).flowsTo(setup.getARouteHandlerArg())
select setup,
"A `RouteSetupCandidate` that did not get promoted to `RouteSetup`, and it is using at least one `RouteHandlerCandidate`."