cloudfoundry-incubator/eirini

View on GitHub
util/retryable_json_client.go

Summary

Maintainability
A
35 mins
Test Coverage
A
91%

Method RetryableJSONClient.Post has 5 return statements (exceeds 4 allowed).
Open

func (c *RetryableJSONClient) Post(ctx context.Context, url string, data interface{}) error {
    jsonBody, err := json.Marshal(data)
    if err != nil {
        return errors.Wrap(err, "failed to marshal json body")
    }
Severity: Major
Found in util/retryable_json_client.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status