Plugins: Simplify TestExtractFiles test (#95183)

simplify TestExtractFiles test
This commit is contained in:
Will Browne
2024-10-24 12:01:00 +01:00
committed by GitHub
parent a2868fdb14
commit 9ae3d049a3
2 changed files with 28 additions and 39 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ func isSymlinkRelativeTo(basePath string, symlinkDestPath string, symlinkOrigPat
return false
}
fileDir := filepath.Dir(symlinkOrigPath)
cleanPath := filepath.Clean(filepath.Join(fileDir, "/", symlinkDestPath))
cleanPath := filepath.Clean(filepath.Join(fileDir, symlinkDestPath))
p, err := filepath.Rel(basePath, cleanPath)
if err != nil {
return false