Skip to content

Commit

Permalink
chore: resolve lint warns
Browse files Browse the repository at this point in the history
  • Loading branch information
EclesioMeloJunior committed Sep 19, 2024
1 parent d7804bc commit 413d7bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion dot/network/messages/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ var (

var (
errBlockRequestFromNumberInvalid = errors.New("block request message From number is not valid")
errInvalidStartingBlockType = errors.New("invalid StartingBlock in messsage")
ErrNilBlockInResponse = errors.New("nil block in response")
)

Expand Down
2 changes: 1 addition & 1 deletion dot/sync/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (s *Service) handleDescendingRequest(req *messages.BlockRequestMessage) (*m
if bestBlockNumber < startBlock {
startNumber = bestBlockNumber
} else {
startNumber = uint(startBlock)
startNumber = startBlock
}
case common.Hash:
startHash = &startBlock
Expand Down

0 comments on commit 413d7bc

Please sign in to comment.