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

fix: linter issues after gotea update (#2824)

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2022-01-10 11:18:26 -03:00 committed by GitHub
parent 34b7b85aa3
commit 9af798b993
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,9 @@ func NewGitea(ctx *context.Context, token string) (Client, error) {
return nil, err
}
if ctx != nil {
gitea.SetContext(ctx)(client)
if err := gitea.SetContext(ctx)(client); err != nil {
return nil, err
}
}
return &giteaClient{client: client}, nil
}