Refactor repeated invalid character checks in Path.GetFullPath Unix and Windows ...
authorSteve Berdy <86739818+steveberdy@users.noreply.github.com>
Fri, 6 Aug 2021 16:58:25 +0000 (12:58 -0400)
committerGitHub <noreply@github.com>
Fri, 6 Aug 2021 16:58:25 +0000 (12:58 -0400)
commit58efa4b79751a2dad08d9bf7ca67930f8160afe3
treefcfd11dbbff730a50b003786571bca7762f3885c
parent91021fe27b1b845f51ff29cfd47b2405fa91b683
Refactor repeated invalid character checks in Path.GetFullPath Unix and Windows (#56568)

* Refactored repeated checks for invalid path chars

* Removed checkedForInvalids param and renamed method to GetFullPathInternal

* Apply suggestions from code review

* Cleaned up trailing whitespace

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
src/libraries/System.Private.CoreLib/src/System/IO/Path.Unix.cs
src/libraries/System.Private.CoreLib/src/System/IO/Path.Windows.cs