diff --git a/internal/commands/report.go b/internal/commands/report.go index 35ae678b2f..c3cc76608e 100644 --- a/internal/commands/report.go +++ b/internal/commands/report.go @@ -71,13 +71,7 @@ Config: configData = strings.TrimRight(padded.String(), " \n") } - platformAPIs := "" - for _, api := range build.SupportedPlatformAPIVersions { - if len(platformAPIs) > 0 { - platformAPIs += ", " - } - platformAPIs = fmt.Sprintf("%s%s", platformAPIs, api) - } + platformAPIs := strings.Join(build.SupportedPlatformAPIVersions.AsStrings(), ", ") return tpl.Execute(writer, map[string]string{ "Version": version,