We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaa0ce9 commit 18ef40cCopy full SHA for 18ef40c
arduino/cores/packagemanager/download.go
@@ -33,7 +33,11 @@ type PlatformReference struct {
33
}
34
35
func (platform *PlatformReference) String() string {
36
- return platform.Package + ":" + platform.PlatformArchitecture + "@" + platform.PlatformVersion.String()
+ res := platform.Package + ":" + platform.PlatformArchitecture
37
+ if platform.PlatformVersion != nil {
38
+ return res + "@" + platform.PlatformVersion.String()
39
+ }
40
+ return res
41
42
43
// FindPlatform returns the Platform matching the PlatformReference or nil if not found.
0 commit comments