1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-03 13:11:48 +02:00

refactor: improve switch

This commit is contained in:
Carlos Alexandro Becker 2024-04-23 09:11:49 -03:00
parent bfb2217f02
commit ddb60f417e
No known key found for this signature in database

View File

@ -340,9 +340,7 @@ func extractCommitInfo(line string) string {
func getChangeloger(ctx *context.Context) (changeloger, error) {
switch ctx.Config.Changelog.Use {
case useGit:
fallthrough
case "":
case useGit, "":
return gitChangeloger{}, nil
case useGitLab, useGitea, useGitHub:
return newSCMChangeloger(ctx)