removed Transmission validation on empty credentials (#6)

This commit is contained in:
Marius Nechifor
2024-11-19 13:46:40 +02:00
committed by GitHub
parent b86173d6c0
commit 65b8a7f988
2 changed files with 2 additions and 12 deletions

View File

@@ -144,8 +144,8 @@ services:
|||||
| TRANSMISSION__ENABLED | No | Enable or disable Transmission | true |
| TRANSMISSION__URL | Yes if Transmission is enabled | Transmission instance url | http://localhost:9091 |
| TRANSMISSION__USERNAME | Yes if Transmission is enabled | Transmission user | empty |
| TRANSMISSION__PASSWORD | Yes if Transmission is enabled | Transmission password | empty |
| TRANSMISSION__USERNAME | No | Transmission user | empty |
| TRANSMISSION__PASSWORD | No | Transmission password | empty |
|||||
| SONARR__ENABLED | No | Whether Sonarr cleanup is enabled or not | true |
| SONARR__INSTANCES__0__URL | Yes | First Sonarr instance url | http://localhost:8989 |

View File

@@ -23,15 +23,5 @@ public record TransmissionConfig
{
throw new ArgumentNullException(nameof(Url));
}
if (string.IsNullOrEmpty(Username))
{
throw new ArgumentNullException(nameof(Username));
}
if (string.IsNullOrEmpty(Password))
{
throw new ArgumentNullException(nameof(Password));
}
}
}