Skip to content

Commit

Permalink
linter suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmenendez committed Sep 23, 2024
1 parent cdd1ba9 commit 410038d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion account/price.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ func electionPriceFactors(vochainURI string) (uint64, uint64, electionprice.Fact
if err != nil {
return 0, 0, electionprice.Factors{}, fmt.Errorf("failed to send request: %w", err)
}
defer resp.Body.Close()
defer func() {
_ = resp.Body.Close()
}()
// parse the response
if resp.StatusCode != http.StatusOK {
return 0, 0, electionprice.Factors{}, fmt.Errorf("unexpected status code: %d", resp.StatusCode)
Expand Down

0 comments on commit 410038d

Please sign in to comment.