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 @@ -46,10 +46,12 @@ func GetPlatforms(req *rpc.PlatformListRequest) ([]*rpc.Platform, error) {
4646 } else {
4747 installedVersion = platformRelease .Version .String ()
4848 }
49- rpcPlatform := commands .PlatformReleaseToRPC (platform .GetLatestRelease ())
50- rpcPlatform .Installed = installedVersion
51- res = append (res , rpcPlatform )
52- continue
49+ if platformRelease != nil {
50+ rpcPlatform := commands .PlatformReleaseToRPC (platformRelease )
51+ rpcPlatform .Installed = installedVersion
52+ res = append (res , rpcPlatform )
53+ continue
54+ }
5355 }
5456
5557 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:58
3300+ #: commands/core/list.go:60
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