@@ -30,7 +30,7 @@ func (pm *PackageManager) IdentifyBoard(idProps *properties.Map) []*cores.Board
30
30
return []* cores.Board {}
31
31
}
32
32
33
- checkSuffix := func (props * properties.Map , s string ) (checked bool , found bool ) {
33
+ checkSuffix := func (props * properties.Map , s string ) (present bool , matched bool ) {
34
34
for k , v1 := range idProps .AsMap () {
35
35
v2 , ok := props .GetOk (k + s )
36
36
if ! ok {
@@ -45,17 +45,17 @@ func (pm *PackageManager) IdentifyBoard(idProps *properties.Map) []*cores.Board
45
45
46
46
foundBoards := []* cores.Board {}
47
47
for _ , board := range pm .InstalledBoards () {
48
- if _ , found := checkSuffix (board .Properties , "" ); found {
48
+ if _ , matched := checkSuffix (board .Properties , "" ); matched {
49
49
foundBoards = append (foundBoards , board )
50
50
continue
51
51
}
52
52
id := 0
53
53
for {
54
- again , found := checkSuffix (board .Properties , fmt .Sprintf (".%d" , id ))
55
- if found {
54
+ present , matched := checkSuffix (board .Properties , fmt .Sprintf (".%d" , id ))
55
+ if matched {
56
56
foundBoards = append (foundBoards , board )
57
57
}
58
- if ! again && id > 0 { // Always check id 0 and 1 (https://github.com/arduino/arduino-cli/issues/456)
58
+ if ! present && id > 0 { // Always check id 0 and 1 (https://github.com/arduino/arduino-cli/issues/456)
59
59
break
60
60
}
61
61
id ++
0 commit comments