Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dotnet] Address some build warnings #15157

Merged
merged 3 commits into from
Jan 25, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update FileUtilities.cs
  • Loading branch information
nvborisenko committed Jan 25, 2025
commit 11ec9e191ff27b4964e68ffc12c42249c5f04adc
3 changes: 2 additions & 1 deletion dotnet/src/webdriver/Internal/FileUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ public static string GetCurrentDirectory()
}

string currentDirectory = location!;

#if !NET8_0_OR_GREATER
// If we're shadow copying, get the directory from the codebase instead
if (AppDomain.CurrentDomain.ShadowCopyFiles)
Expand All @@ -195,7 +196,7 @@ public static string GetCurrentDirectory()

if (codeBase is not null)
{
currentDirectory = Path.GetDirectoryName(codeBase)!;
currentDirectory = Path.GetDirectoryName(codeBase);
}
}
#endif
Expand Down
Loading