Skip to content

Commit

Permalink
fix: do not execute res end when no data is returned
Browse files Browse the repository at this point in the history
  • Loading branch information
svedova committed Oct 25, 2023
1 parent 4d3663c commit a142e28
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/middlewares/express.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ export default (opts: Options) => async (req: Request, res: Response) => {

invokeApiHandler(handler, req, res).then((data) => {
if (!data) {
res.status(200);
res.end();
return;
}

Expand Down

0 comments on commit a142e28

Please sign in to comment.