Skip to content

Commit 77f35ea

Browse files
committed
Minimize diffs further
1 parent b063018 commit 77f35ea

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

dotnet/src/webdriver/DriverFinder.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,21 +111,23 @@ private SeleniumManagerPaths BinaryPaths()
111111
}
112112

113113
SeleniumManagerPaths binaryPaths = SeleniumManager.BinaryPaths(CreateArguments());
114+
string driverPath = binaryPaths.DriverPath;
115+
string browserPath = binaryPaths.BrowserPath;
114116

115-
if (File.Exists(binaryPaths.DriverPath))
117+
if (File.Exists(driverPath))
116118
{
117119
}
118120
else
119121
{
120-
throw new NoSuchDriverException($"The driver path is not a valid file: {binaryPaths.DriverPath}");
122+
throw new NoSuchDriverException($"The driver path is not a valid file: {driverPath}");
121123
}
122124

123-
if (File.Exists(binaryPaths.BrowserPath))
125+
if (File.Exists(browserPath))
124126
{
125127
}
126128
else
127129
{
128-
throw new NoSuchDriverException($"The browser path is not a valid file: {binaryPaths.BrowserPath}");
130+
throw new NoSuchDriverException($"The browser path is not a valid file: {browserPath}");
129131
}
130132

131133
return paths = binaryPaths;

0 commit comments

Comments
 (0)