Reformat and apply Stylecop rules

This commit is contained in:
ta264
2019-12-22 22:08:53 +00:00
committed by Qstick
parent d4fa9b7345
commit f02fa629cc
1186 changed files with 7105 additions and 5616 deletions
@@ -25,10 +25,7 @@ namespace NzbDrone.Core.Indexers
{
var res = new XElement(
root.Name.LocalName,
root.HasElements ?
root.Elements().Select(StripNameSpace) :
(object)root.Value
);
root.HasElements ? root.Elements().Select(StripNameSpace) : (object)root.Value);
res.ReplaceAttributes(
root.Attributes().Where(attr => (!attr.IsNamespaceDeclaration)));
@@ -46,6 +43,7 @@ namespace NzbDrone.Core.Indexers
dateString = RemoveTimeZoneRegex.Replace(dateString, "");
result = DateTime.Parse(dateString, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AssumeUniversal);
}
return result.ToUniversalTime();
}
catch (FormatException e)
@@ -109,7 +107,6 @@ namespace NzbDrone.Core.Indexers
{
return (T)Convert.ChangeType(element.Value, typeof(T));
}
catch (InvalidCastException)
{
return defaultValue;