Skip to content

Commit

Permalink
Fix gosimple lint warning (#651)
Browse files Browse the repository at this point in the history
Signed-off-by: Cosmin Cojocar <[email protected]>
  • Loading branch information
ccojocar committed Jun 17, 2021
1 parent 731d0d5 commit df10b65
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,6 @@ func ExcludedDirsRegExp(excludedDirs []string) []*regexp.Regexp {

// RootPath returns the absolute root path of a scan
func RootPath(root string) (string, error) {
if strings.HasSuffix(root, "...") {
root = root[0 : len(root)-3]
}
root = strings.TrimPrefix(root, "...")
return filepath.Abs(root)
}

0 comments on commit df10b65

Please sign in to comment.