clean code

This commit is contained in:
白茶清欢 2023-02-14 22:25:58 +08:00
parent 59a8ce9a9d
commit cd667a868d

View File

@ -84,9 +84,6 @@ func (hc *httpClient) Send(requestURL string, method string, header map[string]s
default:
return nil, errors.New(method + " is not invalid")
}
if response, err = c.Do(method, requestURL, header, bytes.NewReader(byteData)); nil != err {
return nil, err
}
if response.StatusCode != http.StatusOK {
return nil, fmt.Errorf("%v : %v", response.StatusCode, response.Status)
}