mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Reformat and apply Stylecop rules
This commit is contained in:
@@ -101,7 +101,10 @@ namespace NzbDrone.Core.Configuration
|
||||
|
||||
object currentValue;
|
||||
allWithDefaults.TryGetValue(configValue.Key, out currentValue);
|
||||
if (currentValue == null) continue;
|
||||
if (currentValue == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var equal = configValue.Value.ToString().Equals(currentValue.ToString());
|
||||
|
||||
@@ -260,7 +263,6 @@ namespace NzbDrone.Core.Configuration
|
||||
{
|
||||
parentContainer.Add(new XElement(key, valueString));
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
parentContainer.Descendants(key).Single().Value = valueString;
|
||||
@@ -334,7 +336,6 @@ namespace NzbDrone.Core.Configuration
|
||||
return xDoc;
|
||||
}
|
||||
}
|
||||
|
||||
catch (XmlException ex)
|
||||
{
|
||||
throw new InvalidConfigFileException($"{_configFile} is corrupt is invalid. Please delete the config file and Radarr will recreate it.", ex);
|
||||
|
Reference in New Issue
Block a user