k8s/utils/http.go
Function do
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func do(ctx context.Context, client *http.Client, method string, uri string, body interface{}) error {
Function do
has 5 return statements (exceeds 4 allowed). Open
Open
func do(ctx context.Context, client *http.Client, method string, uri string, body interface{}) error {
bodyJSON, err := json.Marshal(body)
if err != nil {
return errors.Wrap(err, "cannot marshal body")
}