mirror of https://github.com/docker/docs.git
Merge pull request #1780 from paultag/paultag/cleanup/remove-redundent-redundent-logic
Remove redundent assignment to InsecureSkipVerify
This commit is contained in:
commit
f8b0ca86c2
|
@ -27,9 +27,6 @@ func getTLSConfig(caCert, cert, key []byte, allowInsecure bool) (*tls.Config, er
|
||||||
return &tlsConfig, err
|
return &tlsConfig, err
|
||||||
}
|
}
|
||||||
tlsConfig.Certificates = []tls.Certificate{keypair}
|
tlsConfig.Certificates = []tls.Certificate{keypair}
|
||||||
if allowInsecure {
|
|
||||||
tlsConfig.InsecureSkipVerify = true
|
|
||||||
}
|
|
||||||
|
|
||||||
return &tlsConfig, nil
|
return &tlsConfig, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue