* Stylecop Rules and Fixes
This commit is contained in:
Qstick 2020-01-03 07:49:24 -05:00
parent a602611a5f
commit a4b78b44ce
1307 changed files with 8702 additions and 7403 deletions

View file

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