You've already forked goreleaser
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:
committed by
Carlos Alexandro Becker
parent
e13a3319bb
commit
0ef202cb74
@ -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 != "" {
|
||||
|
Reference in New Issue
Block a user