refactor: remove redundant write of StatusCode
This commit is contained in:
parent
e9d9836238
commit
7bd1c5a45a
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user