Merge pull request #1780 from paultag/paultag/cleanup/remove-redundent-redundent-logic

Remove redundent assignment to InsecureSkipVerify
This commit is contained in:
Evan Hazlett 2015-08-31 11:25:34 -04:00
commit f8b0ca86c2
1 changed files with 0 additions and 3 deletions

View File

@ -27,9 +27,6 @@ func getTLSConfig(caCert, cert, key []byte, allowInsecure bool) (*tls.Config, er
return &tlsConfig, err
}
tlsConfig.Certificates = []tls.Certificate{keypair}
if allowInsecure {
tlsConfig.InsecureSkipVerify = true
}
return &tlsConfig, nil
}