Skip to content

Commit 8e7b8b2

Browse files
committed
Minimize diffs
1 parent dbe9758 commit 8e7b8b2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

dotnet/src/webdriver/DriverFinder.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,18 @@ private SeleniumManagerPaths BinaryPaths()
111111
}
112112

113113
SeleniumManagerPaths binaryPaths = SeleniumManager.BinaryPaths(CreateArguments());
114-
if (!File.Exists(binaryPaths.DriverPath))
114+
if (File.Exists(binaryPaths.DriverPath))
115+
{
116+
}
117+
else
115118
{
116119
throw new NoSuchDriverException($"The driver path is not a valid file: {binaryPaths.DriverPath}");
117120
}
118121

119-
if (!File.Exists(binaryPaths.BrowserPath))
122+
if (File.Exists(binaryPaths.BrowserPath))
123+
{
124+
}
125+
else
120126
{
121127
throw new NoSuchDriverException($"The browser path is not a valid file: {binaryPaths.BrowserPath}");
122128
}

0 commit comments

Comments
 (0)