Skip to content

Commit

Permalink
Merge pull request #186 from andreis/patch-1
Browse files Browse the repository at this point in the history
RM-25125 Fix #183
  • Loading branch information
dustinhiatt-wf authored Apr 12, 2018
2 parents 900cfe0 + 52fb8b8 commit d3b8653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queue/priority_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (items *priorityItems) pop() Item {
func (items *priorityItems) get(number int) []Item {
returnItems := make([]Item, 0, number)
for i := 0; i < number; i++ {
if i >= len(*items) {
if len(*items) == 0 {
break
}

Expand Down

0 comments on commit d3b8653

Please sign in to comment.