You've already forked goreleaser
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:
committed by
GitHub
parent
501f092811
commit
69c8a502db
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user