ory-am/hydra

View on GitHub
cmd/server/helper_cert.go

Summary

Maintainability
A
1 hr
Test Coverage

Function GetOrCreateTLSCertificate has 10 return statements (exceeds 4 allowed).
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
Severity: Major
Found in cmd/server/helper_cert.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status