Normalizing tests with golang 1.4

This commit is contained in:
gfleury 2020-03-05 16:59:10 -03:00
parent ee1529b887
commit 89ba0cdc30

View File

@ -416,7 +416,7 @@ func NewAPIResponse(r *http.Response) *APIResponse {
// NewAPIResponseWithError create new erroneous API response from http.response and error
func NewAPIResponseWithError(r *http.Response, err error) (*APIResponse, error) {
response := &APIResponse{Response: r, Message: err.Error()}
response := &APIResponse{Response: r, Message: strings.ReplaceAll(err.Error(), "\"", "")}
return response, err
}