From 493a5cc17ed6e5877071cbfadcee6421c3047f67 Mon Sep 17 00:00:00 2001 From: anatoleam Date: Fri, 15 Dec 2023 09:20:52 +0100 Subject: [PATCH] remove extraneous cursor.All() at query entitlements --- data/query/query.entitlements.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/data/query/query.entitlements.go b/data/query/query.entitlements.go index 760f7eeb..34a67430 100644 --- a/data/query/query.entitlements.go +++ b/data/query/query.entitlements.go @@ -95,13 +95,6 @@ func (q *Query) Entitlements(ctx context.Context, filter bson.M, opts ...QueryEn items = append(items, item) } - if err := cur.All(ctx, &items); err != nil { - zap.S().Errorw("failed to decode entitlements", "error", err) - r.setError(err) - - return r - } - // Fetch references cosmetics, err := q.Cosmetics(ctx, cosmeticIDs) if err != nil {