Fix the unit tests (#652)

Signed-off-by: Cosmin Cojocar <ccojocar@cloudbees.com>
This commit is contained in:
Cosmin Cojocar 2021-06-17 14:56:27 +02:00 committed by GitHub
parent df10b65136
commit 3f800cc8ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -446,6 +446,6 @@ func ExcludedDirsRegExp(excludedDirs []string) []*regexp.Regexp {
// RootPath returns the absolute root path of a scan
func RootPath(root string) (string, error) {
root = strings.TrimPrefix(root, "...")
root = strings.TrimSuffix(root, "...")
return filepath.Abs(root)
}