Skip to content

Commit

Permalink
remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
fbac committed Jan 28, 2025
1 parent 8b5a3f3 commit 1274ca8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/indexer/reorgHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ func (r *ReorgHandler) FindReorgPoint(detectedAt uint64) (uint64, []byte, error)
}

func (r *ReorgHandler) searchInRange(blocks []queries.GetBlocksInRangeRow) (uint64, []byte, error) {
if len(blocks) == 0 {
return 0, nil, ErrNoBlocksFound
}

left, right := 0, len(blocks)-1
for left <= right {
mid := (left + right) / 2
Expand Down

0 comments on commit 1274ca8

Please sign in to comment.