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