Skip to content

Commit

Permalink
Fix the unit tests (#652)
Browse files Browse the repository at this point in the history
Signed-off-by: Cosmin Cojocar <ccojocar@cloudbees.com>
  • Loading branch information
ccojocar committed Jun 17, 2021
1 parent df10b65 commit 3f800cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 3f800cc

Please sign in to comment.