File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,12 @@ func GetPlatforms(req *rpc.PlatformListRequest) ([]*rpc.Platform, error) {
4545 } else {
4646 installedVersion = platformRelease .Version .String ()
4747 }
48- rpcPlatform := commands .PlatformReleaseToRPC (platform .GetLatestRelease ())
49- rpcPlatform .Installed = installedVersion
50- res = append (res , rpcPlatform )
51- continue
48+ if platformRelease != nil {
49+ rpcPlatform := commands .PlatformReleaseToRPC (platformRelease )
50+ rpcPlatform .Installed = installedVersion
51+ res = append (res , rpcPlatform )
52+ continue
53+ }
5254 }
5355
5456 if platformRelease != nil {
Original file line number Diff line number Diff line change @@ -3297,7 +3297,7 @@ msgstr "testing local archive integrity: %s"
32973297msgid "text section exceeds available space in board"
32983298msgstr "text section exceeds available space in board"
32993299
3300- #: commands/core/list.go:57
3300+ #: commands/core/list.go:59
33013301msgid "the platform has no releases"
33023302msgstr "the platform has no releases"
33033303
You can’t perform that action at this time.
0 commit comments