@@ -21,7 +21,7 @@ func (c *Client) DecodeAddress(address string) (*models.DecodedAddress, error) {
2121 if resp .StatusCode != http .StatusOK {
2222 return nil , fmt .Errorf ("unexpected error: %d" , resp .Body )
2323 }
24- defer resp .Body .Close ()
24+ defer resp .Body .Close () //nolint:errcheck
2525 var decodedAddress models.DecodedAddress
2626 err = json .NewDecoder (resp .Body ).Decode (& decodedAddress )
2727 if err != nil {
@@ -42,7 +42,7 @@ func (c *Client) AddressTransactionCount(address string) (*models.AddressTransac
4242 if resp .StatusCode != http .StatusOK {
4343 return nil , fmt .Errorf ("unexpected error: %d" , resp .Body )
4444 }
45- defer resp .Body .Close ()
45+ defer resp .Body .Close () //nolint:errcheck
4646 var addressTransactionCount models.AddressTransactionCount
4747 err = json .NewDecoder (resp .Body ).Decode (& addressTransactionCount )
4848 if err != nil {
@@ -70,7 +70,7 @@ func (c *Client) AddressTransactions(
7070 if resp .StatusCode != http .StatusOK {
7171 return nil , fmt .Errorf ("unexpected error: %d" , resp .Body )
7272 }
73- defer resp .Body .Close ()
73+ defer resp .Body .Close () //nolint:errcheck
7474 var addressTransactions models.AddressTransactions
7575 err = json .NewDecoder (resp .Body ).Decode (& addressTransactions )
7676 if err != nil {
@@ -98,7 +98,7 @@ func (c *Client) PaymentCredentialTransactions(
9898 if resp .StatusCode != http .StatusOK {
9999 return nil , fmt .Errorf ("unexpected error: %d" , resp .Body )
100100 }
101- defer resp .Body .Close ()
101+ defer resp .Body .Close () //nolint:errcheck
102102 var addressTransactions models.AddressTransactions
103103 err = json .NewDecoder (resp .Body ).Decode (& addressTransactions )
104104 if err != nil {
@@ -126,7 +126,7 @@ func (c *Client) UtxoReferencesAtAddress(
126126 if resp .StatusCode != http .StatusOK {
127127 return nil , fmt .Errorf ("unexpected error: %d" , resp .Body )
128128 }
129- defer resp .Body .Close ()
129+ defer resp .Body .Close () //nolint:errcheck
130130 var utxoReferencesAtAddress models.UtxoReferencesAtAddress
131131 err = json .NewDecoder (resp .Body ).Decode (& utxoReferencesAtAddress )
132132 if err != nil {
@@ -154,7 +154,7 @@ func (c *Client) UtxosAtAddress(
154154 if resp .StatusCode != http .StatusOK {
155155 return nil , fmt .Errorf ("unexpected error: %d" , resp .Body )
156156 }
157- defer resp .Body .Close ()
157+ defer resp .Body .Close () //nolint:errcheck
158158 var utxosAtAddress models.UtxosAtAddress
159159 err = json .NewDecoder (resp .Body ).Decode (& utxosAtAddress )
160160 if err != nil {
@@ -183,7 +183,7 @@ func (c *Client) UtxosAtAddresses(
183183 if resp .StatusCode != http .StatusOK {
184184 return nil , fmt .Errorf ("unexpected error: %d" , resp .Body )
185185 }
186- defer resp .Body .Close ()
186+ defer resp .Body .Close () //nolint:errcheck
187187 var utxosAtAddress models.UtxosAtAddress
188188 err = json .NewDecoder (resp .Body ).Decode (& utxosAtAddress )
189189 if err != nil {
@@ -211,7 +211,7 @@ func (c *Client) UtxosByPaymentCredential(
211211 if resp .StatusCode != http .StatusOK {
212212 return nil , fmt .Errorf ("unexpected error: %d" , resp .Body )
213213 }
214- defer resp .Body .Close ()
214+ defer resp .Body .Close () //nolint:errcheck
215215 var utxosAtAddress models.UtxosAtAddress
216216 err = json .NewDecoder (resp .Body ).Decode (& utxosAtAddress )
217217 if err != nil {
0 commit comments