Skip to content

Commit

Permalink
fix(storage/fs): return empty slice instead of rule not found
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeMac committed May 13, 2024
1 parent 5e020a0 commit 516f570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/storage/fs/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ func (ss *Snapshot) GetEvaluationRules(ctx context.Context, flag storage.Resourc
func (ss *Snapshot) GetEvaluationDistributions(ctx context.Context, rule storage.IDRequest) ([]*storage.EvaluationDistribution, error) {
dists, ok := ss.evalDists[rule.ID]
if !ok {
return nil, errs.ErrNotFoundf("rule %q", rule.ID)
return []*storage.EvaluationDistribution{}, nil
}

return dists, nil
Expand Down

0 comments on commit 516f570

Please sign in to comment.