Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cce committed Nov 6, 2023
1 parent c7e0d3e commit 28bb8fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catchup/universalFetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (hf *HTTPFetcher) getBlockBytes(ctx context.Context, r basics.Round) (data
response.Body.Close()
noBlockErr := noBlockForRoundError{round: r}
if latestBytes := response.Header.Get("X-Latest-Round"); latestBytes != "" {
if latest, err := strconv.ParseUint(latestBytes, 10, 64); err == nil {
if latest, pErr := strconv.ParseUint(latestBytes, 10, 64); pErr == nil {
noBlockErr.latest = basics.Round(latest)
}
}
Expand Down

0 comments on commit 28bb8fb

Please sign in to comment.