docker/swarmkit

View on GitHub
ca/external.go

Summary

Maintainability
A
55 mins
Test Coverage

Function makeExternalSignRequest has 9 return statements (exceeds 4 allowed).
Open

func makeExternalSignRequest(ctx context.Context, client *http.Client, url string, csrJSON []byte) (cert []byte, err error) {
    resp, err := ctxhttp.Post(ctx, client, url, "application/json", bytes.NewReader(csrJSON))
    if err != nil {
        return nil, recoverableErr{err: errors.Wrap(err, "unable to perform certificate signing request")}
    }
Severity: Major
Found in ca/external.go - About 55 mins to fix

    There are no issues that match your filters.

    Category
    Status