Skip to content
Permalink
Browse files

fix: cast

  • Loading branch information...
caarlos0 committed Jan 17, 2019
1 parent 0ef202c commit d95b7f9adc9edde8b242864748e012a5f3a2af28
Showing with 1 addition and 1 deletion.
  1. +1 −1 internal/client/github.go
@@ -25,7 +25,7 @@ func NewGitHub(ctx *context.Context) (Client, error) {
&oauth2.Token{AccessToken: ctx.Token},
)
httpClient := oauth2.NewClient(ctx, ts)
httpClient.Transport.(*http.Transport).TLSClientConfig = &tls.Config{
httpClient.Transport.(*oauth2.Transport).Base.(*http.Transport).TLSClientConfig = &tls.Config{
InsecureSkipVerify: ctx.Config.GitHubURLs.SkipTLSVerify,
}
client := github.NewClient(httpClient)

0 comments on commit d95b7f9

Please sign in to comment.
You can’t perform that action at this time.