Skip to content
Permalink
Browse files

chore: unrequired if

  • Loading branch information...
caarlos0 committed Jan 17, 2019
1 parent e13a331 commit 0ef202cb74ad25abb5f74957a975cb3670b1fdd1
Showing with 2 additions and 4 deletions.
  1. +2 −4 internal/client/github.go
@@ -25,10 +25,8 @@ func NewGitHub(ctx *context.Context) (Client, error) {
&oauth2.Token{AccessToken: ctx.Token},
)
httpClient := oauth2.NewClient(ctx, ts)
if ctx.Config.GitHubURLs.SkipTLSVerify {
httpClient.Transport.(*http.Transport).TLSClientConfig = &tls.Config{
InsecureSkipVerify: ctx.Config.GitHubURLs.SkipTLSVerify,
}
httpClient.Transport.(*http.Transport).TLSClientConfig = &tls.Config{
InsecureSkipVerify: ctx.Config.GitHubURLs.SkipTLSVerify,
}
client := github.NewClient(httpClient)
if ctx.Config.GitHubURLs.API != "" {

0 comments on commit 0ef202c

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