-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix duplicated path.Contains check and other checks in Path.GetFullPath #55373
Conversation
Tagging subscribers to this area: @dotnet/area-system-io Issue Details
|
Switched method from a private protection level to an internal protection level. Also removed trailing whitespace.
@stephentoub Please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit suggestion on renaming the method. I'll go ahead and commit the suggestions and merge once checks rerun/pass.
src/libraries/System.Private.CoreLib/src/System/IO/Path.Windows.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/IO/Path.Windows.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/IO/Path.Windows.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/IO/Path.Windows.cs
Outdated
Show resolved
Hide resolved
Thank you @jeffhandley! |
Summary
Refactors code to prevent duplicate checks on paths in the
Path.GetFullPath
methods.Fixes #54993