Normalizing tests with golang 1.4

This commit is contained in:
gfleury 2020-03-05 17:04:12 -03:00
parent 89ba0cdc30
commit 459d89fa44

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: strings.ReplaceAll(err.Error(), "\"", "")}
response := &APIResponse{Response: r, Message: strings.Replace(err.Error(), "\"", "", -1)}
return response, err
}