perf: remove redundant StatusCode set
This commit is contained in:
parent
f08a3d3607
commit
83beffe685
@ -79,7 +79,6 @@ public class Article : PageModel
|
|||||||
var date = new DateOnly(year, month, day);
|
var date = new DateOnly(year, month, day);
|
||||||
if (!_blogPostService.TryGetPost(date, slug, out IBlogPost? post))
|
if (!_blogPostService.TryGetPost(date, slug, out IBlogPost? post))
|
||||||
{
|
{
|
||||||
Response.StatusCode = 404;
|
|
||||||
return NotFound();
|
return NotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user