meifamily/ptt-alertor

View on GitHub
channels/messenger/http.go

Summary

Maintainability
A
35 mins
Test Coverage

Function callAPI has 5 return statements (exceeds 4 allowed).
Open

func callAPI(url string, body interface{}) error {
    data, err := json.Marshal(body)
    if err != nil {
        return err
    }
Severity: Major
Found in channels/messenger/http.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status