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:
parent
f4fad65471
commit
4ada24b6a8
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user