Skip to content

Commit

Permalink
removed redundant queue length check in accountQueue.peek() function (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dusan-maksimovic authored Oct 2, 2023
1 parent 12d38b8 commit 9e55557
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions txpool/queue_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ func (q *accountQueue) push(tx *types.Transaction) {

// peek returns the first transaction from the queue without removing it.
func (q *accountQueue) peek() *types.Transaction {
if q.length() == 0 {
return nil
}

return q.queue.Peek()
}

Expand Down

0 comments on commit 9e55557

Please sign in to comment.