Improve DownloadClientProvider blockedClientStatus var

This commit is contained in:
Bakerboy448 2023-05-09 10:29:04 -05:00
parent 1c2359e66e
commit b327feeaf6
1 changed files with 1 additions and 3 deletions

View File

@ -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;