Aria2 formatting cleanup

This commit is contained in:
Qstick 2021-08-14 20:07:02 -04:00 committed by Mark McDowall
parent 22f044844c
commit 0fe436b952
1 changed files with 11 additions and 8 deletions

View File

@ -1,4 +1,8 @@
using CookComputing.XmlRpc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using CookComputing.XmlRpc;
using FluentValidation.Results;
using NLog;
using NzbDrone.Common.Disk;
@ -9,10 +13,6 @@ using NzbDrone.Core.MediaFiles.TorrentInfo;
using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.RemotePathMappings;
using NzbDrone.Core.Validation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
namespace NzbDrone.Core.Download.Clients.Aria2
{
@ -31,7 +31,7 @@ namespace NzbDrone.Core.Download.Clients.Aria2
Logger logger)
: base(torrentFileInfoReader, httpClient, configService, diskProvider, remotePathMappingService, logger)
{
_proxy = proxy; ;
_proxy = proxy;
}
protected override string AddFromMagnetLink(RemoteEpisode remoteEpisode, string hash, string magnetLink)
@ -48,7 +48,7 @@ namespace NzbDrone.Core.Download.Clients.Aria2
return hash;
}
_logger.Debug($"Äria2 AddFromMagnetLink '{hash}' -> '{gid}'");
_logger.Debug($"Aria2 AddFromMagnetLink '{hash}' -> '{gid}'");
return hash;
}
@ -201,7 +201,10 @@ namespace NzbDrone.Core.Download.Clients.Aria2
{
failures.AddIfNotNull(TestConnection());
if (failures.HasErrors()) return;
if (failures.HasErrors())
{
return;
}
}
private ValidationFailure TestConnection()