Skip to content

Commit

Permalink
Remove punctuation on NewInvalidArgumentErrorf
Browse files Browse the repository at this point in the history
  • Loading branch information
saquibmian committed Feb 21, 2024
1 parent 83e55d7 commit cae081c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions private/buf/cmd/buf/command/push/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,12 @@ func validateCreateFlags(flags *flags) error {
func validateLabelFlags(flags *flags) error {
for _, label := range flags.Labels {
if label == "" {
return appcmd.NewInvalidArgumentErrorf("--%s requires a non-empty string.", labelFlagName)
return appcmd.NewInvalidArgumentErrorf("--%s requires a non-empty string", labelFlagName)
}
}
for _, tag := range flags.Tags {
if tag == "" {
return appcmd.NewInvalidArgumentErrorf("--%s requires a non-empty string.", tagFlagName)
return appcmd.NewInvalidArgumentErrorf("--%s requires a non-empty string", tagFlagName)
}
}
return nil
Expand Down

0 comments on commit cae081c

Please sign in to comment.