Skip to content

Commit 3f800cc

Browse files
authored
Fix the unit tests (#652)
Signed-off-by: Cosmin Cojocar <[email protected]>
1 parent df10b65 commit 3f800cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,6 @@ func ExcludedDirsRegExp(excludedDirs []string) []*regexp.Regexp {
446446

447447
// RootPath returns the absolute root path of a scan
448448
func RootPath(root string) (string, error) {
449-
root = strings.TrimPrefix(root, "...")
449+
root = strings.TrimSuffix(root, "...")
450450
return filepath.Abs(root)
451451
}

0 commit comments

Comments
 (0)