Skip to content

Commit 03b210a

Browse files
committed
made the two Passport classes in the Express model private
1 parent 3ebe660 commit 03b210a

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ module Express {
151151
/**
152152
* A call that sets up a Passport router that includes the request object.
153153
*/
154-
class PassportRouteSetup extends HTTP::Servers::StandardRouteSetup, CallExpr {
154+
private class PassportRouteSetup extends HTTP::Servers::StandardRouteSetup, CallExpr {
155155
DataFlow::ModuleImportNode importNode;
156156
DataFlow::FunctionNode callback;
157157

@@ -178,7 +178,7 @@ module Express {
178178
/**
179179
* The callback given to passport in PassportRouteSetup.
180180
*/
181-
class PassportRouteHandler extends RouteHandler, HTTP::Servers::StandardRouteHandler,
181+
private class PassportRouteHandler extends RouteHandler, HTTP::Servers::StandardRouteHandler,
182182
DataFlow::ValueNode {
183183
override Function astNode;
184184

0 commit comments

Comments
 (0)