From a58de927f6f828f223cfa4e3dcc22c30519bb0e4 Mon Sep 17 00:00:00 2001 From: wangtingshun Date: Thu, 1 Sep 2022 08:54:49 +0800 Subject: [PATCH] fix lint by http err --- transport/http/client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/http/client_test.go b/transport/http/client_test.go index b9d3631b0..aea1c55cd 100644 --- a/transport/http/client_test.go +++ b/transport/http/client_test.go @@ -364,7 +364,7 @@ func TestNewClient(t *testing.T) { t.Error("err should be equal to encoder error") } reqURL := fmt.Sprintf(client.target.Endpoint + "/go") - req, err := nethttp.NewRequest("POST", reqURL, nil) + req, _ := nethttp.NewRequest("POST", reqURL, nil) err = client.DoWithMiddleware(req, nil, EmptyCallOption{}) if err == nil { t.Error("err should not be equal to nil")