Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
avalkov committed Aug 5, 2022
1 parent 486b05a commit 2a0c0ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rest/bank/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (brc bankRESTClient) get(ctx context.Context, uri string, height int64) (st
return "", err
}

resp.Body.Close()
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
return "", err
Expand Down

0 comments on commit 2a0c0ba

Please sign in to comment.