mirror of https://github.com/docker/docs.git
Merge pull request #473 from HuKeping/consistent
Keep a consistent coding style
This commit is contained in:
commit
aaefd545cf
|
@ -205,7 +205,8 @@ func GetLeafCerts(certs []*x509.Certificate) []*x509.Certificate {
|
||||||
|
|
||||||
// GetIntermediateCerts parses a list of x509 Certificates and returns all of the
|
// GetIntermediateCerts parses a list of x509 Certificates and returns all of the
|
||||||
// ones marked as a CA, to be used as intermediates
|
// ones marked as a CA, to be used as intermediates
|
||||||
func GetIntermediateCerts(certs []*x509.Certificate) (intCerts []*x509.Certificate) {
|
func GetIntermediateCerts(certs []*x509.Certificate) []*x509.Certificate {
|
||||||
|
var intCerts []*x509.Certificate
|
||||||
for _, cert := range certs {
|
for _, cert := range certs {
|
||||||
if cert.IsCA {
|
if cert.IsCA {
|
||||||
intCerts = append(intCerts, cert)
|
intCerts = append(intCerts, cert)
|
||||||
|
|
Loading…
Reference in New Issue