Refactored out merge pattern for more readable syntax.
This commit is contained in:
parent
e449bd7928
commit
b8c183c079
1 changed files with 1 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ public class QBittorrent(ILogger<QBittorrent> logger, Settings settings, Authent
|
||||||
if (!String.IsNullOrWhiteSpace(torrent.RdName))
|
if (!String.IsNullOrWhiteSpace(torrent.RdName))
|
||||||
{
|
{
|
||||||
// Alldebrid stores single file torrents at the root folder.
|
// Alldebrid stores single file torrents at the root folder.
|
||||||
if (torrent is { ClientKind: Torrent.TorrentClientKind.AllDebrid, Files.Count: 1 })
|
if (torrent.ClientKind == Torrent.TorrentClientKind.AllDebrid && torrent.Files.Count == 1)
|
||||||
{
|
{
|
||||||
torrentPath = Path.Combine(downloadPath, torrent.Files[0].Path);
|
torrentPath = Path.Combine(downloadPath, torrent.Files[0].Path);
|
||||||
} else
|
} else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue