File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ func GetCompatibleWith(name string) map[string][]firmware {
59
59
fw := regexp .MustCompile (knownBoards [name ].match )
60
60
61
61
err := filepath .Walk (root , func (path string , info os.FileInfo , err error ) error {
62
+ if info .IsDir () {
63
+ return nil
64
+ }
62
65
unixPath := filepath .ToSlash (path )
63
66
parts := strings .Split (unixPath , "/" )
64
67
fancyName := parts [len (parts )- 3 ] + " " + parts [len (parts )- 2 ]
@@ -67,9 +70,6 @@ func GetCompatibleWith(name string) map[string][]firmware {
67
70
Name : fancyName ,
68
71
IsLoader : loader .MatchString (path ) && ! listAll ,
69
72
}
70
- if info .IsDir () {
71
- return nil
72
- }
73
73
folder := filepath .Dir (path )
74
74
lowerPath , _ := filepath .Rel (root , path )
75
75
lowerPath = strings .ToLower (lowerPath )
You can’t perform that action at this time.
0 commit comments