Apply suggestions from code review

pull/8784/head
Bogdan 2 years ago
parent 97ed820575
commit f69a847d9a

@ -66,8 +66,6 @@ namespace NzbDrone.Core.ImportLists
var importListLocal = importList; var importListLocal = importList;
var importListStatus = _importListStatusService.GetLastSyncListInfo(importListLocal.Definition.Id); var importListStatus = _importListStatusService.GetLastSyncListInfo(importListLocal.Definition.Id);
_logger.ProgressInfo("Syncing Movies for Import List [{0}]: {1}", importList.Name, importListLocal.Definition.Name);
if (importListStatus.HasValue) if (importListStatus.HasValue)
{ {
var importListNextSync = importListStatus.Value + importListLocal.MinRefreshInterval; var importListNextSync = importListStatus.Value + importListLocal.MinRefreshInterval;
@ -80,6 +78,8 @@ namespace NzbDrone.Core.ImportLists
} }
} }
_logger.ProgressInfo("Syncing Movies for Import List [{0}]: {1}", importList.Name, importListLocal.Definition.Name);
var blockedLists = _importListStatusService.GetBlockedProviders().ToDictionary(v => v.ProviderId, v => v); var blockedLists = _importListStatusService.GetBlockedProviders().ToDictionary(v => v.ProviderId, v => v);
if (blockedLists.TryGetValue(importList.Definition.Id, out var blockedListStatus)) if (blockedLists.TryGetValue(importList.Definition.Id, out var blockedListStatus))

Loading…
Cancel
Save