Skip to content

Commit

Permalink
fix: regression
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienaury committed Sep 19, 2024
1 parent c39866c commit 85dc11d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/jsonline/jsonline.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ import (
"bufio"
"io"

json "github.com/goccy/go-json"

over "github.com/adrienaury/zeromdc"
"github.com/cgi-fr/pimo/pkg/model"
"github.com/goccy/go-json"
)

// NewSource creates a new Source.
Expand Down Expand Up @@ -127,7 +126,10 @@ func (s Sink) ProcessDictionary(dictionary model.Entry) error {
// JSONToDictionary return a model.Dictionary from a jsonline
func JSONToDictionary(jsonline []byte) (model.Dictionary, error) {
dict := model.NewDictionary()
return dict, dict.UnmarshalJSON(jsonline)

err := dict.UnmarshalJSON(jsonline)

return model.CleanDictionary(dict), err
}

// JSONToPackedDictionary return a packed model.Dictionary from a jsonline
Expand Down

0 comments on commit 85dc11d

Please sign in to comment.