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

refactor: remove unused function

refs f4fad65471e037a6b76353106ebb6a38fd5ebda4
refs #3891

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos A Becker 2023-03-29 13:25:26 -03:00
parent f4fad65471
commit 4ada24b6a8
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -337,15 +337,3 @@ func getFromEnv(s string) func() ([]string, error) {
return nil, nil
}
}
// GetGPGProgram returns the user set GPG path or "gpg" if nothing is set
func GetGPGProgram(ctx *context.Context) string {
path, _ := git.Clean(git.Run(ctx, "config", "gpg.program"))
// if config not set assume default
if len(path) == 0 {
path = "gpg"
}
return path
}