Skip to content

Commit

Permalink
Remove unnecessary for
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelavila committed Mar 22, 2019
1 parent e192b45 commit 18ef644
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mount/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,12 @@ func (h *querySet) next() (query.Result, bool) {
head := h.heads[0]
next := head.next

for head.advance() {
if head.advance() {
heap.Fix(h, 0)
return next, true
} else {
heap.Remove(h, 0)
}
heap.Remove(h, 0)

return next, true
}

Expand Down

0 comments on commit 18ef644

Please sign in to comment.