1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-05 00:59:04 +02:00

chore: unrequired if

This commit is contained in:
Carlos Alexandro Becker
2019-01-17 11:28:10 -02:00
committed by Carlos Alexandro Becker
parent e13a3319bb
commit 0ef202cb74

View File

@ -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 != "" {