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 2b32cee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
3 changes: 2 additions & 1 deletion rpcs/blockService.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,8 @@ func topicBlockBytes(log logging.Logger, dataLedger LedgerForBlockService, round
default:
log.Infof("BlockService topicBlockBytes: %s", err)
}
return network.Topics{network.MakeTopic(network.ErrorKey, []byte(blockNotAvailableErrMsg))}, 0
return network.Topics{
network.MakeTopic(network.ErrorKey, []byte(blockNotAvailableErrMsg))}, 0
}
switch requestType {
case BlockAndCertValue:
Expand Down

0 comments on commit 2b32cee

Please sign in to comment.