From 265758da716ebcdd40d543c724f05a12169e757f Mon Sep 17 00:00:00 2001 From: "Khan Mohammad R." Date: Fri, 17 Nov 2023 14:55:59 +0100 Subject: [PATCH] Improved readability by cleaning up a conditional --- .../Health/HealthTelemetryFilter.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Altinn.Notifications.Email/Health/HealthTelemetryFilter.cs b/src/Altinn.Notifications.Email/Health/HealthTelemetryFilter.cs index 4b6794f..e10c272 100644 --- a/src/Altinn.Notifications.Email/Health/HealthTelemetryFilter.cs +++ b/src/Altinn.Notifications.Email/Health/HealthTelemetryFilter.cs @@ -35,12 +35,7 @@ public void Process(ITelemetry item) private static bool ExcludeItemTelemetry(ITelemetry item) { - if (item is RequestTelemetry request && request.Url.ToString().EndsWith("/health")) - { - return true; - } - - return false; + return item is RequestTelemetry request && request.Url.ToString().EndsWith("/health"); } } }