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:
parent
b4e0439f4d
commit
ad40cb0349
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user