Skip to content

Commit 1c78be2

Browse files
fixed another test
1 parent dd32818 commit 1c78be2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

worker/task.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ func (qs *queryState) handleValuePostings(ctx context.Context, args funcArgs) er
398398
fcs := &pb.FacetsList{FacetsList: make([]*pb.Facets, 0)} // TODO Figure out how it is stored
399399

400400
if !pickMultiplePostings {
401-
pl, err := qs.cache.GetSinglePosting(key)
402-
if pl == nil || err == posting.ErrNoValue || err == badger.ErrKeyNotFound {
401+
pl, _ := qs.cache.GetSinglePosting(key)
402+
if pl == nil {
403403
out.UidMatrix = append(out.UidMatrix, &pb.List{})
404404
out.FacetMatrix = append(out.FacetMatrix, &pb.FacetsList{})
405405
out.ValueMatrix = append(out.ValueMatrix,
@@ -410,9 +410,6 @@ func (qs *queryState) handleValuePostings(ctx context.Context, args funcArgs) er
410410
}
411411
continue
412412
}
413-
if err != nil {
414-
return err
415-
}
416413
vals = make([]types.Val, len(pl.Postings))
417414
for i, p := range pl.Postings {
418415
vals[i] = types.Val{

0 commit comments

Comments
 (0)