From 5149db155d06adf48d71c1c5924c224a2e49794d Mon Sep 17 00:00:00 2001 From: Mohammad Mahdi Date: Tue, 1 Apr 2025 15:57:02 +0330 Subject: [PATCH] Remove unnecessary comments --- HoolIt/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HoolIt/Program.cs b/HoolIt/Program.cs index feabd0b..1161463 100644 --- a/HoolIt/Program.cs +++ b/HoolIt/Program.cs @@ -51,9 +51,9 @@ createApi.MapGet("/{feedId}", async (HttpContext context, string feedId) => }; var addFailedResponse = JsonSerializer.Serialize(faultResponse, AppJsonSerializerContext.Default.AddDweetFailedResponse); - context.Response.StatusCode = 500; // Set the status code to 500 - context.Response.ContentType = "application/json"; // Set Content-Type to application/json - await context.Response.WriteAsync(addFailedResponse); // Write the JSON error response to the body + context.Response.StatusCode = 500; + context.Response.ContentType = "application/json"; + await context.Response.WriteAsync(addFailedResponse); await context.Response.CompleteAsync(); }