Skip to content

Commit

Permalink
chore: remove redundant return
Browse files Browse the repository at this point in the history
  • Loading branch information
kiremitrov123 committed Oct 10, 2024
1 parent 342d650 commit 75a2e10
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions platforms/access-bridge/src/pipeline/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export class Middleware {

logger.error('Unexpected error:', err);
sendErrors(res, ErrorDefinitions.InternalError.create());
return;
};

/**
Expand All @@ -79,7 +78,6 @@ export class Middleware {
*/
notFoundErrorHandler = (req: Request, res: Response, next: NextFunction) => {
sendErrors(res, ErrorDefinitions.NotFoundError.create());
return;
};

/**
Expand Down

0 comments on commit 75a2e10

Please sign in to comment.