pkg/oauth/grant_response.go
Method GrantResponse.LoadFromJSON
has 6 return statements (exceeds 4 allowed). Open
Open
func (r *GrantResponse) LoadFromJSON(responseBody []byte, mapping ...map[GrantResponseKey]string) error {
responseFieldMap := DefaultGrantResponseMapping
if len(mapping) > 0 {
responseFieldMap = mapping[0]
}