util/retryable_json_client.go
Method RetryableJSONClient.Post
has 5 return statements (exceeds 4 allowed). Open
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")
}