mirror of
https://github.com/winsw/winsw.git
synced 2025-12-10 18:37:28 +08:00
Increase code coverage
This commit is contained in:
@@ -991,16 +991,16 @@ namespace WinSW
|
||||
/// <exception cref="FileNotFoundException" />
|
||||
private static XmlServiceConfig CreateConfig(string? path)
|
||||
{
|
||||
if (path != null)
|
||||
{
|
||||
return new XmlServiceConfig(path);
|
||||
}
|
||||
|
||||
if (TestConfig != null)
|
||||
{
|
||||
return TestConfig;
|
||||
}
|
||||
|
||||
if (path != null)
|
||||
{
|
||||
return new XmlServiceConfig(path);
|
||||
}
|
||||
|
||||
path = Path.ChangeExtension(ExecutablePath, ".xml");
|
||||
if (!File.Exists(path))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user