From 18ef6442361166e9e4f543d51cd298246b0113c4 Mon Sep 17 00:00:00 2001 From: Michael Avila Date: Fri, 22 Mar 2019 16:36:30 -0700 Subject: [PATCH] Remove unnecessary for --- mount/mount.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mount/mount.go b/mount/mount.go index 0e7011b..326277a 100644 --- a/mount/mount.go +++ b/mount/mount.go @@ -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 }