1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-05 00:59:04 +02:00

chore(deps): bump github.com/golangci/golangci-lint from 1.23.7 to 1.27.0 (#1563)

* chore(deps): bump github.com/golangci/golangci-lint from 1.23.7 to 1.27.0

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker
2020-05-26 00:48:10 -03:00
committed by GitHub
parent 501f092811
commit 69c8a502db
55 changed files with 341 additions and 316 deletions

View File

@ -21,14 +21,13 @@ type githubClient struct {
client *github.Client
}
// NewGitHub returns a github client implementation
// NewGitHub returns a github client implementation.
func NewGitHub(ctx *context.Context) (Client, error) {
ts := oauth2.StaticTokenSource(
&oauth2.Token{AccessToken: ctx.Token},
)
httpClient := oauth2.NewClient(ctx, ts)
base := httpClient.Transport.(*oauth2.Transport).Base
// nolint: govet
if base == nil || reflect.ValueOf(base).IsNil() {
base = http.DefaultTransport
}