File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
javascript/ql/src/semmle/javascript/frameworks Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments