1
0
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:
Carlos Alexandro Becker 2019-01-17 22:51:41 -02:00 committed by Carlos Alexandro Becker
parent 6a87444e5f
commit 55169a8c60

View File

@ -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{