From 82e3b40e7ce69b3248ba5d1a8be65d647627e600 Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Wed, 30 Nov 2022 02:11:07 +0100 Subject: [PATCH] refactor: remove redundant function signature --- packages/backend/src/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/app.ts b/packages/backend/src/app.ts index 7eec9c96..a42a1009 100644 --- a/packages/backend/src/app.ts +++ b/packages/backend/src/app.ts @@ -1,5 +1,5 @@ import createError from 'http-errors'; -import express, { Request, Response, NextFunction } from 'express'; +import express from 'express'; import cors from 'cors'; import corsOptions from './config/cors-options'; import morgan from './helpers/morgan'; @@ -38,7 +38,7 @@ app.use('/', router); webUIHandler(app); // catch 404 and forward to error handler -app.use(function (req: Request, res: Response, next: NextFunction) { +app.use(function (req, res, next) { next(createError(404)); });