* Stylecop Rules and Fixes
This commit is contained in:
Qstick
2020-01-03 07:49:24 -05:00
committed by GitHub
parent 63d669178d
commit f77a2feeef
1307 changed files with 8704 additions and 7404 deletions
@@ -1,10 +1,10 @@
using System.IO;
using System.Xml.Linq;
using NLog;
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Http;
using NzbDrone.Core.Rest;
using RestSharp;
using System.IO;
using System.Xml.Linq;
namespace NzbDrone.Core.Notifications.Subsonic
{
@@ -64,7 +64,7 @@ namespace NzbDrone.Core.Notifications.Subsonic
_logger.Trace("Version response: {0}", response.Content);
CheckForError(response, settings);
var xDoc = XDocument.Load(new StringReader(response.Content.Replace("&", "&")));
var version = xDoc.Root?.Attribute("version")?.Value;
@@ -126,7 +126,6 @@ namespace NzbDrone.Core.Notifications.Subsonic
}
throw new SubsonicException(errorMessage);
}
if (response.Content.IsNullOrWhiteSpace())