Skip to content

Commit 216ae70

Browse files
committed
asseting register routes seems fine
1 parent ce216b4 commit 216ae70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/esm/fixtures/express/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ app.use((req: any, res: any, next: express.NextFunction) => {
1717
req.stringValue = 'fancyStringForContext';
1818
next();
1919
});
20-
if (RegisterRoutes) (RegisterRoutes as (app: express.Express) => void)(app);
20+
(RegisterRoutes as (app: express.Express) => void)(app);
2121

2222
// It's important that this come after the main routes are registered
2323
app.use((err: any, req: express.Request, res: express.Response, next: express.NextFunction) => {

0 commit comments

Comments
 (0)