ory-am/hydra

View on GitHub
driver/config/tls.go

Summary

Maintainability
A
35 mins
Test Coverage

Method tlsConfig.GetCertificateFunc has 5 return statements (exceeds 4 allowed).
Open

func (c *tlsConfig) GetCertificateFunc(stopReload <-chan struct{}, log *logrusx.Logger) (func(*tls.ClientHelloInfo) (*tls.Certificate, error), error) {
    if c.certPath != "" && c.keyPath != "" { // attempt to load from disk first (enables hot-reloading)
        ctx, cancel := context.WithCancel(context.Background())
        go func() {
            <-stopReload
Severity: Major
Found in driver/config/tls.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status