Simplify logic in HandleRequest

pull/1275/head
Qstick 2 years ago
parent 5b82decc31
commit 0e7eaa9221

@ -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)

Loading…
Cancel
Save