mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-01 13:07:49 +02:00
fix: nil transport
This commit is contained in:
parent
6a87444e5f
commit
55169a8c60
@ -26,7 +26,7 @@ func NewGitHub(ctx *context.Context) (Client, error) {
|
||||
)
|
||||
httpClient := oauth2.NewClient(ctx, ts)
|
||||
base := httpClient.Transport.(*oauth2.Transport).Base
|
||||
if base != nil {
|
||||
if &base != nil {
|
||||
base = http.DefaultTransport
|
||||
}
|
||||
base.(*http.Transport).TLSClientConfig = &tls.Config{
|
||||
|
Loading…
x
Reference in New Issue
Block a user