diff options
author | Alan Pearce | 2024-05-08 08:26:11 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-08 08:26:11 +0200 |
commit | 5e008c251cf0e91ca6cdf9d91faaaa4975636541 (patch) | |
tree | e94c989a1781111dc1d492cc57a25ff8f0b757dc /internal | |
parent | 973345ad50f9b237714fcb364cf7f665b3909f9d (diff) | |
download | searchix-5e008c251cf0e91ca6cdf9d91faaaa4975636541.tar.lz searchix-5e008c251cf0e91ca6cdf9d91faaaa4975636541.tar.zst searchix-5e008c251cf0e91ca6cdf9d91faaaa4975636541.zip |
fix: incorrect data shown for default and example option keys
Diffstat (limited to 'internal')
-rw-r--r-- | internal/search/search.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/search/search.go b/internal/search/search.go index 83a8365..b7640fc 100644 --- a/internal/search/search.go +++ b/internal/search/search.go @@ -69,6 +69,7 @@ func New[T options.NixOption](kind string) (*Index[T], error) { return nil, errors.WithMessage(err, "could not create struct decoder") } for mv := range dec.Stream() { + opt = options.NixOption{} err := ms.Decode(mv.Value) // stores in opt if err != nil { |