Skip to content

Commit f9e1da9

Browse files
committed
Don't throw if no appsettings element
1 parent 86830bd commit f9e1da9

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

IPBanCore/Core/IPBan/IPBanConfig.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,6 @@ public static string GetConfigAppSetting(XmlDocument doc, string key)
640640
return null;
641641
}
642642

643-
XmlNode appSettings = doc.SelectSingleNode($"/configuration/appSettings") ?? throw new InvalidOperationException("Unable to find appSettings in config");
644643
XmlNode existingSetting = doc.SelectSingleNode($"/configuration/appSettings/add[@key='{key}']");
645644
if (existingSetting is null)
646645
{

0 commit comments

Comments
 (0)