Skip to content

Commit

Permalink
refactor: improve mergeability
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Dec 31, 2022
1 parent b4e0439 commit ad40cb0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions internal/pipe/changelog/changelog.go
Expand Up @@ -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) {
Expand Down

0 comments on commit ad40cb0

Please sign in to comment.