Remove unnecessary assignment to path
This commit is contained in:
parent
a5170fd825
commit
53960d48c7
|
@ -423,7 +423,6 @@ func resolveSymlinksImpl(root, base, rel string, followCount uint) (string, erro
|
||||||
path := filepath.Join(base, name)
|
path := filepath.Join(base, name)
|
||||||
if !strings.HasPrefix(path, root) {
|
if !strings.HasPrefix(path, root) {
|
||||||
// One cannot '..' their way out of root.
|
// One cannot '..' their way out of root.
|
||||||
path = root
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
fi, err := os.Lstat(path)
|
fi, err := os.Lstat(path)
|
||||||
|
|
Loading…
Reference in New Issue