mirror of
https://github.com/securego/gosec.git
synced 2025-03-17 20:57:54 +02:00
Fix the unit tests (#652)
Signed-off-by: Cosmin Cojocar <ccojocar@cloudbees.com>
This commit is contained in:
parent
df10b65136
commit
3f800cc8ca
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user