Skip to content

Commit 6c050d3

Browse files
committed
revert change of return-type
1 parent ae228cb commit 6c050d3

File tree

1 file changed

+3
-2
lines changed
  • javascript/ql/src/semmle/javascript/frameworks

1 file changed

+3
-2
lines changed

javascript/ql/src/semmle/javascript/frameworks/HTTP.qll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ module HTTP {
235235

236236
/**
237237
* Holds if `call` decorates the function `pred`.
238-
* This means that `call` returns a function that forwards its arguments to `pred`.
238+
* This means that `call` returns a function that forwards its arguments to `pred`.
239239
* Only holds when the decorator looks like it is decorating a route-handler.
240240
*/
241241
private predicate isDecoratedCall(DataFlow::CallNode call, DataFlow::FunctionNode decoratee) {
@@ -605,7 +605,8 @@ module HTTP {
605605
)
606606
}
607607

608-
override RouteHandlerCandidate getRouteHandler(DataFlow::SourceNode access) {
608+
override DataFlow::SourceNode getRouteHandler(DataFlow::SourceNode access) {
609+
result instanceof RouteHandlerCandidate and
609610
exists(DataFlow::PropWrite write, DataFlow::PropRead read |
610611
access = read and
611612
ref(this).getAPropertyRead() = read and

0 commit comments

Comments
 (0)