Skip to content

Commit

Permalink
Removed conditional
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Block <andy.block@gmail.com>
  • Loading branch information
sabre1041 committed Mar 3, 2023
1 parent 154f37e commit ec5e29e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/getter/httpgetter.go
Expand Up @@ -123,7 +123,7 @@ func (g *HTTPGetter) httpClient() (*http.Client, error) {
}
})

if (g.opts.certFile != "" && g.opts.keyFile != "") || g.opts.caFile != "" || g.opts.insecureSkipVerifyTLS {
if (g.opts.certFile != "" && g.opts.keyFile != "") || g.opts.caFile != "" {
tlsConf, err := tlsutil.NewClientTLS(g.opts.certFile, g.opts.keyFile, g.opts.caFile, g.opts.insecureSkipVerifyTLS)
if err != nil {
return nil, errors.Wrap(err, "can't create TLS config for client")
Expand Down

0 comments on commit ec5e29e

Please sign in to comment.