1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

refactor: improve mergeability

This commit is contained in:
Carlos A Becker 2022-12-30 22:57:24 -03:00
parent b4e0439f4d
commit ad40cb0349
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -209,14 +209,11 @@ func loadFromFile(file string) (string, error) {
func checkSortDirection(mode string) error {
switch mode {
case "":
fallthrough
case "asc":
fallthrough
case "desc":
case "", "asc", "desc":
return nil
default:
return ErrInvalidSortDirection
}
return ErrInvalidSortDirection
}
func buildChangelog(ctx *context.Context) ([]string, error) {