mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
clean: removed uneeded param
This commit is contained in:
parent
59f10ad083
commit
742c8d03aa
@ -49,7 +49,7 @@ func getInfo(ctx *context.Context) (context.GitInfo, error) {
|
||||
if !git.IsRepo() {
|
||||
return context.GitInfo{}, ErrNotRepository
|
||||
}
|
||||
info, err := getGitInfo(ctx)
|
||||
info, err := getGitInfo()
|
||||
if err != nil && ctx.Snapshot {
|
||||
log.WithError(err).Warn("ignoring errors because this is a snapshot")
|
||||
if info.Commit == "" {
|
||||
@ -60,7 +60,7 @@ func getInfo(ctx *context.Context) (context.GitInfo, error) {
|
||||
return info, err
|
||||
}
|
||||
|
||||
func getGitInfo(ctx *context.Context) (context.GitInfo, error) {
|
||||
func getGitInfo() (context.GitInfo, error) {
|
||||
short, err := getShortCommit()
|
||||
if err != nil {
|
||||
return context.GitInfo{}, errors.Wrap(err, "couldn't get current commit")
|
||||
|
Loading…
x
Reference in New Issue
Block a user