Skip to content

Commit

Permalink
Merge pull request kubernetes#2410 from puerco/fix-parsenum
Browse files Browse the repository at this point in the history
Fix bug where incorrect count was used when assets had no tag
  • Loading branch information
k8s-ci-robot committed Feb 3, 2022
2 parents ee437d8 + 10bafca commit f55d5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/publish-release/cmd/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func getAssetsFromStrings(assetStrings []string) []announce.Asset {
for _, s := range assetStrings {
parts := strings.Split(s, ":")
l := ""
if len(parts) > 0 {
if len(parts) > 1 {
l = parts[1]
}
r = append(r, announce.Asset{
Expand Down

0 comments on commit f55d5af

Please sign in to comment.