diff --git a/src/NzbDrone.Core/Download/DownloadClientProvider.cs b/src/NzbDrone.Core/Download/DownloadClientProvider.cs index f6d7d2e07..882666ed0 100644 --- a/src/NzbDrone.Core/Download/DownloadClientProvider.cs +++ b/src/NzbDrone.Core/Download/DownloadClientProvider.cs @@ -73,7 +73,7 @@ public IEnumerable GetDownloadClients(bool filterBlockedClients if (filterBlockedClients) { - return FilterBlockedIndexers(enabledClients).ToList(); + return FilterBlockedDownloadClients(enabledClients).ToList(); } return enabledClients; @@ -84,15 +84,13 @@ public IDownloadClient Get(int id) return _downloadClientFactory.GetAvailableProviders().Single(d => d.Definition.Id == id); } - private IEnumerable FilterBlockedIndexers(IEnumerable clients) + private IEnumerable FilterBlockedDownloadClients(IEnumerable clients) { var blockedClients = _downloadClientStatusService.GetBlockedProviders().ToDictionary(v => v.ProviderId, v => v); 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;