]> Cypherpunks.ru repositories - gostls13.git/commit
path/filepath: remove extra Clean call in EvalSymlinks on Windows
authorqmuntal <quimmuntal@gmail.com>
Thu, 1 Dec 2022 20:59:00 +0000 (21:59 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Tue, 24 Jan 2023 07:42:17 +0000 (07:42 +0000)
commit030ca34f5786f0b924dcab26379ee2f82104220d
tree641f66bf22dc4a05277fe744ef5aa12b8981c156
parent7135710e01ab86468f23ac412e7f03f49235d5bb
path/filepath: remove extra Clean call in EvalSymlinks on Windows

EvalSymlinks calls Clean twice, one in walkSymlinks and another in
toNorm. The later is not necessary, as toNorm is only called by
EvalSymlinks and just after walkSymlinks cleans the path without any
path manipulation in between.

Change-Id: Ibdb782c7eed59468f0ebb913e98d2a7db0df010d
Reviewed-on: https://go-review.googlesource.com/c/go/+/454615
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
src/path/filepath/path_windows_test.go
src/path/filepath/symlink_windows.go