From 7bd1c5a45a422a6d261ded69b976fe4427702eaa Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Fri, 11 Aug 2023 16:41:53 +0100 Subject: [PATCH] refactor: remove redundant write of StatusCode --- OliverBooth/Areas/Blog/Pages/RawArticle.cshtml.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/OliverBooth/Areas/Blog/Pages/RawArticle.cshtml.cs b/OliverBooth/Areas/Blog/Pages/RawArticle.cshtml.cs index b1530ac..2e7ca93 100644 --- a/OliverBooth/Areas/Blog/Pages/RawArticle.cshtml.cs +++ b/OliverBooth/Areas/Blog/Pages/RawArticle.cshtml.cs @@ -27,7 +27,6 @@ public class RawArticle : PageModel { if (!_blogService.TryGetBlogPost(year, month, day, slug, out BlogPost? post)) { - Response.StatusCode = 404; return NotFound(); }