Optimize out empty path components
filepath.Join("foo", "") returns a newly allocated copy of "foo", while filepath.Join("foo") does not. Strip out any empty path components before calling filepath.Join. Test: TestValidatePath Change-Id: Ib47dbcd9d6463809acfe260dfd9af87ea280b4de
Loading
Please register or sign in to comment