diff options
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/scanner/scanner.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/scanner/scanner.go b/internal/scanner/scanner.go index ca601ba..cf5490a 100644 --- a/internal/scanner/scanner.go +++ b/internal/scanner/scanner.go @@ -7,8 +7,13 @@ type Scanner struct { } func New(roots []string) *Scanner { + clean := make([]string, len(roots)) + for i, root := range roots { + clean[i] = filepath.Clean(root) + } + return &Scanner{ - roots: roots, + roots: clean, } } |