From 79c70ba868d4e2cae2245b3d5e5f3e4e5807ab8e Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 6 May 2022 21:57:48 -0500 Subject: [PATCH] Fix lint issues --- src/NzbDrone.Core/HealthCheck/HealthCheckService.cs | 1 - src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs | 1 + src/NzbDrone.Core/Notifications/NotificationService.cs | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/HealthCheck/HealthCheckService.cs b/src/NzbDrone.Core/HealthCheck/HealthCheckService.cs index 19820a601..04b401826 100644 --- a/src/NzbDrone.Core/HealthCheck/HealthCheckService.cs +++ b/src/NzbDrone.Core/HealthCheck/HealthCheckService.cs @@ -141,7 +141,6 @@ namespace NzbDrone.Core.HealthCheck // If we haven't previously re-run health checks after startup grace period run startup checks again and track so they aren't run again. // Return early after re-running checks to avoid triggering checks multiple times. - if (!_hasRunHealthChecksAfterGracePeriod && !_isRunningHealthChecksAfterGracePeriod && DateTime.UtcNow > _startupGracePeriodEndTime) { _isRunningHealthChecksAfterGracePeriod = true; diff --git a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs index 9f78d347f..782777944 100644 --- a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs +++ b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs @@ -8,6 +8,7 @@ using NzbDrone.Common.Disk; using NzbDrone.Common.Extensions; using NzbDrone.Common.Processes; using NzbDrone.Common.Serializer; +using NzbDrone.Core.HealthCheck; using NzbDrone.Core.Music; using NzbDrone.Core.ThingiProvider; using NzbDrone.Core.Validation; diff --git a/src/NzbDrone.Core/Notifications/NotificationService.cs b/src/NzbDrone.Core/Notifications/NotificationService.cs index cf53352f0..0a13400be 100644 --- a/src/NzbDrone.Core/Notifications/NotificationService.cs +++ b/src/NzbDrone.Core/Notifications/NotificationService.cs @@ -204,7 +204,6 @@ namespace NzbDrone.Core.Notifications { // Don't send health check notifications during the start up grace period, // once that duration expires they they'll be retested and fired off if necessary. - if (message.IsInStartupGraceperiod) { return;