mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-20 21:54:58 -04:00
StyleCop
This commit is contained in:
@@ -210,10 +210,11 @@ namespace NzbDrone.Core.Configuration
|
||||
{
|
||||
var instanceName = GetValue("InstanceName", BuildInfo.AppName);
|
||||
|
||||
if (instanceName.StartsWith(BuildInfo.AppName) || instanceName.EndsWith(BuildInfo.AppName) )
|
||||
if (instanceName.StartsWith(BuildInfo.AppName) || instanceName.EndsWith(BuildInfo.AppName))
|
||||
{
|
||||
return instanceName;
|
||||
}
|
||||
|
||||
return BuildInfo.AppName;
|
||||
}
|
||||
}
|
||||
@@ -286,7 +287,6 @@ namespace NzbDrone.Core.Configuration
|
||||
{
|
||||
parentContainer.Add(new XElement(key, valueString));
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
parentContainer.Descendants(key).Single().Value = valueString;
|
||||
@@ -360,7 +360,6 @@ namespace NzbDrone.Core.Configuration
|
||||
return xDoc;
|
||||
}
|
||||
}
|
||||
|
||||
catch (XmlException ex)
|
||||
{
|
||||
throw new InvalidConfigFileException($"{_configFile} is corrupt is invalid. Please delete the config file and Sonarr will recreate it.", ex);
|
||||
|
||||
Reference in New Issue
Block a user