summaryrefslogtreecommitdiff
path: root/python/python_test.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2023-10-24 14:17:03 -0700
committer Colin Cross <ccross@android.com> 2023-11-02 14:37:21 -0700
commitbf9ed3fba2b27d0067f0701ca4396140c1d522eb (patch)
tree627022b4a0558164424e13c5722ca34c0c245ab2 /python/python_test.go
parent9ae2999dab2c968fe52761b572b7cf45547727c9 (diff)
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
Diffstat (limited to 'python/python_test.go')
0 files changed, 0 insertions, 0 deletions