From 65b8a7f988e6302c2b363df3ff0bd9bcf4bcfb26 Mon Sep 17 00:00:00 2001 From: Marius Nechifor Date: Tue, 19 Nov 2024 13:46:40 +0200 Subject: [PATCH] removed Transmission validation on empty credentials (#6) --- README.md | 4 ++-- code/Common/Configuration/TransmissionConfig.cs | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index c3d766e..1d7acf1 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/code/Common/Configuration/TransmissionConfig.cs b/code/Common/Configuration/TransmissionConfig.cs index 7d3b591..6c7ff22 100644 --- a/code/Common/Configuration/TransmissionConfig.cs +++ b/code/Common/Configuration/TransmissionConfig.cs @@ -23,15 +23,5 @@ public void Validate() { throw new ArgumentNullException(nameof(Url)); } - - if (string.IsNullOrEmpty(Username)) - { - throw new ArgumentNullException(nameof(Username)); - } - - if (string.IsNullOrEmpty(Password)) - { - throw new ArgumentNullException(nameof(Password)); - } } } \ No newline at end of file