From b327feeaf6dfbb65963c08f41d60292c09bd1321 Mon Sep 17 00:00:00 2001 From: Bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Tue, 9 May 2023 10:29:04 -0500 Subject: [PATCH] Improve DownloadClientProvider blockedClientStatus var --- src/NzbDrone.Core/Download/DownloadClientProvider.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/Download/DownloadClientProvider.cs b/src/NzbDrone.Core/Download/DownloadClientProvider.cs index 63af8f27f..a258983b4 100644 --- a/src/NzbDrone.Core/Download/DownloadClientProvider.cs +++ b/src/NzbDrone.Core/Download/DownloadClientProvider.cs @@ -109,9 +109,7 @@ namespace NzbDrone.Core.Download foreach (var client in clients) { - DownloadClientStatus blockedClientStatus; - - if (blockedClients.TryGetValue(client.Definition.Id, out blockedClientStatus)) + if (blockedClients.TryGetValue(client.Definition.Id, out var blockedClientStatus)) { _logger.Debug("Temporarily ignoring client {0} till {1} due to recent failures.", client.Definition.Name, blockedClientStatus.DisabledTill.Value.ToLocalTime()); continue;