We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 430122c commit ac867a6Copy full SHA for ac867a6
dotnet/src/webdriver/Internal/FileUtilities.cs
@@ -168,9 +168,10 @@ public static string GetCurrentDirectory()
168
string? location = null;
169
170
// Make sure not to call Path.GetDirectoryName if assembly location is null or empty
171
- if (!string.IsNullOrEmpty(executingAssembly.Location))
+ string assemblyLocation = executingAssembly.Location;
172
+ if (!string.IsNullOrEmpty(assemblyLocation))
173
{
- location = Path.GetDirectoryName(executingAssembly.Location);
174
+ location = Path.GetDirectoryName(assemblyLocation);
175
}
176
177
if (string.IsNullOrEmpty(location))
0 commit comments