Remove unnecessary for

parent e192b45b
...@@ -140,11 +140,12 @@ func (h *querySet) next() (query.Result, bool) { ...@@ -140,11 +140,12 @@ func (h *querySet) next() (query.Result, bool) {
head := h.heads[0] head := h.heads[0]
next := head.next next := head.next
for head.advance() { if head.advance() {
heap.Fix(h, 0) heap.Fix(h, 0)
return next, true } else {
heap.Remove(h, 0)
} }
heap.Remove(h, 0)
return next, true return next, true
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment