Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
saquibmian committed Feb 21, 2024
1 parent cae081c commit 23c8611
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions private/buf/cmd/buf/command/push/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ func validateCreateFlags(flags *flags) error {
if flags.Create {
if flags.CreateVisibility == "" {
return appcmd.NewInvalidArgumentErrorf(
"--%s is required if --%s is set.",
"--%s is required if --%s is set",
createVisibilityFlagName,
createFlagName,
)
Expand All @@ -371,7 +371,7 @@ func validateCreateFlags(flags *flags) error {
} else {
if flags.CreateVisibility != "" {
return appcmd.NewInvalidArgumentErrorf(
"Cannot set --%s without --%s.",
"Cannot set --%s without --%s",
createVisibilityFlagName,
createFlagName,
)
Expand All @@ -395,9 +395,7 @@ func validateLabelFlags(flags *flags) error {
}

func combineLabelLikeFlags(flags *flags) []string {
labels := make([]string, 0, len(flags.Labels)+len(flags.Tags))
labels = append(labels, flags.Labels...)
labels = append(labels, flags.Tags...)
labels := append(slicesext.Copy(flags.Labels), flags.Tags...)
if flags.Draft != "" {
labels = append(labels, flags.Draft)
}
Expand Down

0 comments on commit 23c8611

Please sign in to comment.