mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
use getAChainedMethodCall
This commit is contained in:
@@ -142,12 +142,12 @@ module Koa {
|
||||
|
||||
RoutedRouteHandler() {
|
||||
router = DataFlow::moduleImport(["@koa/router", "koa-router"]).getAnInvocation() and
|
||||
call = router.getAMethodCall*() and
|
||||
call.getMethodName() =
|
||||
[
|
||||
"use", "get", "post", "put", "link", "unlink", "delete", "del", "head", "options",
|
||||
"patch", "all"
|
||||
] and
|
||||
call =
|
||||
router
|
||||
.getAChainedMethodCall([
|
||||
"use", "get", "post", "put", "link", "unlink", "delete", "del", "head", "options",
|
||||
"patch", "all"
|
||||
]) and
|
||||
this.flowsTo(call.getArgument(any(int i | i >= 1)))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user