Skip to content

Commit

Permalink
remove extraneous cursor.All() at query entitlements
Browse files Browse the repository at this point in the history
  • Loading branch information
AnatoleAM committed Dec 15, 2023
1 parent 94ee909 commit 493a5cc
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions data/query/query.entitlements.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 493a5cc

Please sign in to comment.