Skip to content

Commit

Permalink
Format supported platform APIs using string join
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Cooper <[email protected]>
  • Loading branch information
danielcooperxyz committed Aug 25, 2020
1 parent 6f55535 commit 1a41c23
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions internal/commands/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1a41c23

Please sign in to comment.