From cd667a868d8a5d7c92e7b37a556d48976440c323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Tue, 14 Feb 2023 22:25:58 +0800 Subject: [PATCH] clean code --- httpclient.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/httpclient.go b/httpclient.go index 51a1693..d2c0857 100644 --- a/httpclient.go +++ b/httpclient.go @@ -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) }