From 73a13a83ea0b481fa83a1ee5c6fd3c2ff393945e Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Sat, 22 Jul 2023 17:12:02 -0700 Subject: [PATCH] chore: make check-gen happy --- client/api_search.go | 1 - templates/client/api.mustache | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/client/api_search.go b/client/api_search.go index 1b83719c..04859beb 100644 --- a/client/api_search.go +++ b/client/api_search.go @@ -87,7 +87,6 @@ func (a *SearchAPIService) SearchTransactions( _, _ = io.Copy(io.Discard, localVarHTTPResponse.Body) _ = localVarHTTPResponse.Body.Close() }() - if err != nil { return nil, nil, fmt.Errorf("failed to read response: %w", err) } diff --git a/templates/client/api.mustache b/templates/client/api.mustache index 89046c8d..a2e8243f 100644 --- a/templates/client/api.mustache +++ b/templates/client/api.mustache @@ -7,6 +7,7 @@ import ( _ioutil "io/ioutil" _nethttp "net/http" "fmt" + "io" "github.com/coinbase/rosetta-sdk-go/types" {{#imports}} "{{import}}"