Skip to content

Commit 6b0de71

Browse files
authored
added missing return
1 parent 6c59784 commit 6b0de71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/controller/PostGetByIdAction.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ export async function postGetByIdAction(request: Request, response: Response) {
1717
if (!post) {
1818
response.status(404);
1919
response.end();
20+
return;
2021
}
2122

2223
// return loaded post
2324
response.send(post);
24-
}
25+
}

0 commit comments

Comments
 (0)