Skip to content

Commit

Permalink
remove old comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpmartinez committed Oct 23, 2023
1 parent f080cb9 commit 5f75e61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ func LoadIdentity(cfg Config) (Identity, error) {
// getUniqueCerts will return a slice of unique certificates from the given slice
func getUniqueCerts(certs []*x509.Certificate) []*x509.Certificate {
set := map[string]*x509.Certificate{}
var keys []string // track insertion order so that server certs come before pool certs
var keys []string

for _, cert := range certs {
hash := sha1.Sum(cert.Raw)
Expand All @@ -506,7 +506,7 @@ func getUniqueCerts(certs []*x509.Certificate) []*x509.Certificate {
// getUniqueCas will return a slice of unique certificates that are CAs from the given slice
func getUniqueCas(certs []*x509.Certificate) []*x509.Certificate {
set := map[string]*x509.Certificate{}
var keys []string // track insertion order so that server certs come before pool certs
var keys []string

for _, cert := range certs {
if cert.IsCA {
Expand Down

0 comments on commit 5f75e61

Please sign in to comment.