mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 12:05:52 +00:00
Fix the unit tests (#652)
Signed-off-by: Cosmin Cojocar <ccojocar@cloudbees.com>
This commit is contained in:
parent
df10b65136
commit
3f800cc8ca
1 changed files with 1 additions and 1 deletions
|
@ -446,6 +446,6 @@ func ExcludedDirsRegExp(excludedDirs []string) []*regexp.Regexp {
|
||||||
|
|
||||||
// RootPath returns the absolute root path of a scan
|
// RootPath returns the absolute root path of a scan
|
||||||
func RootPath(root string) (string, error) {
|
func RootPath(root string) (string, error) {
|
||||||
root = strings.TrimPrefix(root, "...")
|
root = strings.TrimSuffix(root, "...")
|
||||||
return filepath.Abs(root)
|
return filepath.Abs(root)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue