From 0e7eaa922153fd24fda451385dd885b16e058c42 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 31 Dec 2022 17:57:54 -0600 Subject: [PATCH] Simplify logic in HandleRequest --- .../Definitions/Cardigann/CardigannRequestGenerator.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs index cbf777533..e0c0a5b97 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs @@ -716,15 +716,12 @@ namespace NzbDrone.Core.Indexers.Cardigann if (queryCollection.Count > 0) { - if (!requestLinkStr.Contains("?")) + if (!requestLinkStr.Contains('?')) { requestLinkStr += "?"; - requestLinkStr += queryCollection.GetQueryString(_encoding, separator: request.Queryseparator); - } - else - { - requestLinkStr += queryCollection.GetQueryString(separator: request.Queryseparator); } + + requestLinkStr += queryCollection.GetQueryString(_encoding, separator: request.Queryseparator); } var httpRequest = new HttpRequestBuilder(requestLinkStr)