Finish some todos
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
@@ -320,7 +320,7 @@ func CheckResponse(r *http.Response) error {
|
||||
data, err := ioutil.ReadAll(r.Body)
|
||||
if err == nil && len(data) > 0 {
|
||||
json.Unmarshal(data, jsonErrorResponse)
|
||||
if jsonErrorResponse.JSON != nil && len(jsonErrorResponse.JSON.Errors) > 0 {
|
||||
if len(jsonErrorResponse.JSON.Errors) > 0 {
|
||||
return jsonErrorResponse
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user