Skip to content

Commit 11ec9e1

Browse files
committed
Update FileUtilities.cs
1 parent d7a984c commit 11ec9e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dotnet/src/webdriver/Internal/FileUtilities.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ public static string GetCurrentDirectory()
187187
}
188188

189189
string currentDirectory = location!;
190+
190191
#if !NET8_0_OR_GREATER
191192
// If we're shadow copying, get the directory from the codebase instead
192193
if (AppDomain.CurrentDomain.ShadowCopyFiles)
@@ -195,7 +196,7 @@ public static string GetCurrentDirectory()
195196

196197
if (codeBase is not null)
197198
{
198-
currentDirectory = Path.GetDirectoryName(codeBase)!;
199+
currentDirectory = Path.GetDirectoryName(codeBase);
199200
}
200201
}
201202
#endif

0 commit comments

Comments
 (0)