oklahomer/go-sarah

View on GitHub
gitter/rest.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func (client *RestAPIClient) Post(ctx context.Context, resourceFragments []string, sendingPayload interface{}, responsePayload interface{}) error {
    reqBody, err := json.Marshal(sendingPayload)
    if err != nil {
        return fmt.Errorf("can not marshal given payload: %w", err)
    }
Severity: Major
Found in gitter/rest.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status