perf: remove redundant StatusCode set

This commit is contained in:
Oliver Booth 2024-05-05 20:55:32 +01:00
parent f08a3d3607
commit 83beffe685
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5

View File

@ -79,7 +79,6 @@ public class Article : PageModel
var date = new DateOnly(year, month, day);
if (!_blogPostService.TryGetPost(date, slug, out IBlogPost? post))
{
Response.StatusCode = 404;
return NotFound();
}