zephinzer/dev

View on GitHub
pkg/oauth/grant_request.go

Summary

Maintainability
A
35 mins
Test Coverage

Method GrantRequest.Do has 5 return statements (exceeds 4 allowed).
Open

func (r GrantRequest) Do(mapping ...map[GrantRequestKey]string) (*GrantResponse, error) {
    client := http.Client{Timeout: time.Second * 5}
    request, getRequestError := r.GetRequest(mapping...)
    if getRequestError != nil {
        return nil, fmt.Errorf("failed to create request: %s", getRequestError)
Severity: Major
Found in pkg/oauth/grant_request.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status