pkg/oauth/grant_request.go
Method GrantRequest.Do
has 5 return statements (exceeds 4 allowed). Open
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)