Removed conditional

Signed-off-by: Andrew Block <andy.block@gmail.com>
Signed-off-by: Tom Runyon <tom@defenseunicorns.com>
pull/11623/head
Andrew Block 3 years ago committed by Tom Runyon
parent e0f50e2087
commit ce95a8d030
No known key found for this signature in database
GPG Key ID: D1CF51977E0E790F

@ -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")

Loading…
Cancel
Save