We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a120716 commit 441fd81Copy full SHA for 441fd81
1 file changed
src/proc.go
@@ -29,15 +29,12 @@ func FindDirs(path string) ConfigSelection {
29
names, _ := dir.Readdirnames(-1)
30
defer dir.Close()
31
32
- cfg := make(ConfigSelection, len(names))
33
- for k := range names {
34
- resolvedPath := filepath.Join(fullPath, names[k])
35
- if !IsDir(resolvedPath) {
36
- continue
+ cfg := make(ConfigSelection)
+ for _, name := range names {
+ resolvedPath := filepath.Join(fullPath, name)
+ if IsDir(resolvedPath) {
+ cfg[resolvedPath] = resolvedPath
37
}
38
-
39
- D := resolvedPath
40
- cfg[D] = D
41
42
return cfg
43
0 commit comments