Skip to content

Commit 68a9dd9

Browse files
committed
Address comments
1 parent 9624a41 commit 68a9dd9

File tree

1 file changed

+1
-3
lines changed
  • javascript/ql/lib/semmle/javascript/frameworks

1 file changed

+1
-3
lines changed

javascript/ql/lib/semmle/javascript/frameworks/Fastify.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@ module Fastify {
169169

170170
override string getRelativePath() { result = this.getArgument(0).getStringValue() }
171171

172-
override Http::RequestMethodName getHttpMethod() {
173-
if this.getMethodName() = "all" then any() else result = this.getMethodName().toUpperCase()
174-
}
172+
override Http::RequestMethodName getHttpMethod() { result = this.getMethodName().toUpperCase() }
175173
}
176174

177175
private class AddHookRouteSetup extends Routing::RouteSetup::MethodCall instanceof RouteSetup {

0 commit comments

Comments
 (0)