From 83beffe6857fc761b3885803fa21c70ddc066eb2 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sun, 5 May 2024 20:55:32 +0100 Subject: [PATCH] perf: remove redundant StatusCode set --- OliverBooth/Pages/Blog/Article.cshtml.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/OliverBooth/Pages/Blog/Article.cshtml.cs b/OliverBooth/Pages/Blog/Article.cshtml.cs index 64d6cc8..92315be 100644 --- a/OliverBooth/Pages/Blog/Article.cshtml.cs +++ b/OliverBooth/Pages/Blog/Article.cshtml.cs @@ -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(); }