refactor: remove redundant write of StatusCode

This commit is contained in:
Oliver Booth 2023-08-11 16:41:53 +01:00
parent e9d9836238
commit 7bd1c5a45a
Signed by: oliverbooth
GPG Key ID: 725DB725A0D9EE61

View File

@ -27,7 +27,6 @@ public class RawArticle : PageModel
{ {
if (!_blogService.TryGetBlogPost(year, month, day, slug, out BlogPost? post)) if (!_blogService.TryGetBlogPost(year, month, day, slug, out BlogPost? post))
{ {
Response.StatusCode = 404;
return NotFound(); return NotFound();
} }