From 63d475692601fbb4460b9a51b7f6a33afe398135 Mon Sep 17 00:00:00 2001 From: George Date: Tue, 24 Sep 2024 12:30:32 -0700 Subject: [PATCH] Whiny ass go vet --- clients/stellarcore/client_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/clients/stellarcore/client_test.go b/clients/stellarcore/client_test.go index af7fe7e49c..47540b2464 100644 --- a/clients/stellarcore/client_test.go +++ b/clients/stellarcore/client_test.go @@ -112,16 +112,16 @@ func TestGetLedgerEntries(t *testing.T) { "http://localhost:11626/getledgerentryraw", func(r *http.Request) (*http.Response, error) { // Ensure the request has the correct POST body - requestData, err := io.ReadAll(r.Body) - require.NoError(t, err) + requestData, ierr := io.ReadAll(r.Body) + require.NoError(t, ierr) - keyB64, err := key.MarshalBinaryBase64() - require.NoError(t, err) + keyB64, ierr := key.MarshalBinaryBase64() + require.NoError(t, ierr) expected := fmt.Sprintf("key=%s&ledgerSeq=1234", url.QueryEscape(keyB64)) require.Equal(t, expected, string(requestData)) - resp, err := httpmock.NewJsonResponse(http.StatusOK, &mockResp) - require.NoError(t, err) + resp, ierr := httpmock.NewJsonResponse(http.StatusOK, &mockResp) + require.NoError(t, ierr) ce.Return(httpmock.ResponderFromResponse(resp)) return resp, nil })