Skip to content

Commit

Permalink
fix: fix bug in list feature api
Browse files Browse the repository at this point in the history
  • Loading branch information
wfxr committed Nov 12, 2021
1 parent 3f02619 commit 54e5832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/database/metadatav2/informer/feature.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (c *FeatureCache) List(opt metadatav2.ListFeatureOpt) typesv2.FeatureList {
if f := c.Find(func(f *typesv2.Feature) bool {
return f.ID == id
}); f != nil {
tmp = append(features, f)
tmp = append(tmp, f)
}
}
features = tmp
Expand Down

0 comments on commit 54e5832

Please sign in to comment.