From 9231c4d5ca9ea15679fc6f6a7a562a4137d9d65a Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Sun, 22 Dec 2024 06:39:12 +0300 Subject: [PATCH] refactor: remove unused code --- .../Configuration/Core/Middleware/MaintenanceModeMiddleware.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Endpoint/Configuration/Core/Middleware/MaintenanceModeMiddleware.cs b/Endpoint/Configuration/Core/Middleware/MaintenanceModeMiddleware.cs index 68825dc..adfee69 100644 --- a/Endpoint/Configuration/Core/Middleware/MaintenanceModeMiddleware.cs +++ b/Endpoint/Configuration/Core/Middleware/MaintenanceModeMiddleware.cs @@ -30,8 +30,6 @@ public class MaintenanceModeMiddleware(RequestDelegate next, IMaintenanceModeSer throw new ServerUnavailableException( "The service is currently not configured. Go to the setup page if you are an administrator or try again later.", false); - - await context.Response.WriteAsync(error); } } } \ No newline at end of file