File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ package cores
20
20
import (
21
21
"strings"
22
22
23
- "github.com/arduino/go-paths-helper"
23
+ paths "github.com/arduino/go-paths-helper"
24
24
25
25
"github.com/arduino/arduino-cli/arduino/resources"
26
- "github.com/arduino/go-properties-orderedmap"
27
- "go.bug.st/relaxed-semver"
26
+ properties "github.com/arduino/go-properties-orderedmap"
27
+ semver "go.bug.st/relaxed-semver"
28
28
)
29
29
30
30
// Platform represents a platform package.
@@ -158,7 +158,7 @@ func (platform *Platform) latestReleaseVersion() *semver.Version {
158
158
func (platform * Platform ) GetAllInstalled () []* PlatformRelease {
159
159
res := []* PlatformRelease {}
160
160
for _ , release := range platform .Releases {
161
- if release .InstallDir != nil {
161
+ if release .IsInstalled () {
162
162
res = append (res , release )
163
163
}
164
164
}
You can’t perform that action at this time.
0 commit comments