Codebase list golang-gopkg-eapache-queue.v1 / 6770be2
Minor simplification Evan Huus 9 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6565 if i >= q.Length() || i < 0 {
6666 panic("queue: index out of range")
6767 }
68 modi := (q.head + i) % len(q.buf)
69 return q.buf[modi]
68 return q.buf[(q.head+i)%len(q.buf)]
7069 }
7170
7271 // Remove removes the element from the front of the queue. If you actually