mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-10-24 08:48:41 -04:00
fixed errors on download cleaner when download client is none (#67)
This commit is contained in:
1 parent
51bdaf64e4
commit
5dced28228
1 file changed
+6
@@ -46,6 +46,12 @@ public sealed class DownloadCleaner : GenericHandler
|
||||
|
||||
public override async Task ExecuteAsync()
|
||||
{
|
||||
if (_downloadClientConfig.DownloadClient is Common.Enums.DownloadClient.None)
|
||||
{
|
||||
_logger.LogWarning("download client is set to none");
|
||||
return;
|
||||
}
|
||||
|
||||
if (_config.Categories?.Count is null or 0)
|
||||
{
|
||||
_logger.LogWarning("no categories configured");
|
||||
|
||||
Reference in new issue
Block a user