Skip to content

Commit 9830d2b

Browse files
author
Alvaro Muñoz
committed
Format Restify.qll
1 parent a80b691 commit 9830d2b

File tree

1 file changed

+0
-2
lines changed
  • javascript/ql/lib/semmle/javascript/frameworks

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,6 @@ module Restify {
436436
*/
437437
private class ContentTypeRouteHandlerHeader extends Http::ImplicitHeaderDefinition,
438438
DataFlow::FunctionNode instanceof RouteHandler {
439-
440439
override predicate defines(string headerName, string headerValue) {
441440
headerName = "content-type" and headerValue = "application/json"
442441
}
@@ -454,7 +453,6 @@ module Restify {
454453
}
455454

456455
private class RoutingTreeSetup extends Routing::RouteSetup::MethodCall instanceof RouteSetup {
457-
458456
override string getRelativePath() {
459457
not this.getMethodName() = ["use", "pre", "param", "on"] and // do not treat parameter name as a path
460458
result = this.getArgument(0).getStringValue()

0 commit comments

Comments
 (0)