Skip to content

Commit

Permalink
removed Transmission validation on empty credentials (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaminel authored Nov 19, 2024
1 parent b86173d commit 65b8a7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
10 changes: 0 additions & 10 deletions code/Common/Configuration/TransmissionConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}

0 comments on commit 65b8a7f

Please sign in to comment.