cmd/server/helper_cert.go
Function GetOrCreateTLSCertificate
has 10 return statements (exceeds 4 allowed). Open
Open
func GetOrCreateTLSCertificate(ctx context.Context, d driver.Registry, iface config.ServeInterface, stopReload <-chan struct{}) func(*tls.ClientHelloInfo) (*tls.Certificate, error) {
lock.Lock()
defer lock.Unlock()
// check if certificates are configured