You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-17 01:42:37 +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},
|
&oauth2.Token{AccessToken: ctx.Token},
|
||||||
)
|
)
|
||||||
httpClient := oauth2.NewClient(ctx, ts)
|
httpClient := oauth2.NewClient(ctx, ts)
|
||||||
if ctx.Config.GitHubURLs.SkipTLSVerify {
|
httpClient.Transport.(*http.Transport).TLSClientConfig = &tls.Config{
|
||||||
httpClient.Transport.(*http.Transport).TLSClientConfig = &tls.Config{
|
InsecureSkipVerify: ctx.Config.GitHubURLs.SkipTLSVerify,
|
||||||
InsecureSkipVerify: ctx.Config.GitHubURLs.SkipTLSVerify,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
client := github.NewClient(httpClient)
|
client := github.NewClient(httpClient)
|
||||||
if ctx.Config.GitHubURLs.API != "" {
|
if ctx.Config.GitHubURLs.API != "" {
|
||||||
|
Reference in New Issue
Block a user