Fixed: Root Folder Downloads check giving errors when RuTorrent is used (#2266)

* Fixed: Root Folder Downloads check giving errors when RuTorrent is used

* removed uneccesary if statement in RemotePathMappingCheck
This commit is contained in:
Robin Dadswell 2021-05-23 23:39:53 +01:00 committed by GitHub
commit 2573e96d7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 29 deletions

View file

@ -5,6 +5,11 @@ namespace NzbDrone.Core.Download
{ {
public class DownloadClientInfo public class DownloadClientInfo
{ {
public DownloadClientInfo()
{
OutputRootFolders = new List<OsPath>();
}
public bool IsLocalhost { get; set; } public bool IsLocalhost { get; set; }
public List<OsPath> OutputRootFolders { get; set; } public List<OsPath> OutputRootFolders { get; set; }
} }

View file

@ -58,8 +58,6 @@ namespace NzbDrone.Core.HealthCheck.Checks
{ {
var status = client.GetStatus(); var status = client.GetStatus();
var folders = status.OutputRootFolders; var folders = status.OutputRootFolders;
if (folders != null)
{
foreach (var folder in folders) foreach (var folder in folders)
{ {
if (!folder.IsValid) if (!folder.IsValid)
@ -95,7 +93,6 @@ namespace NzbDrone.Core.HealthCheck.Checks
} }
} }
} }
}
catch (DownloadClientException ex) catch (DownloadClientException ex)
{ {
_logger.Debug(ex, "Unable to communicate with {0}", client.Definition.Name); _logger.Debug(ex, "Unable to communicate with {0}", client.Definition.Name);