Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY committed Feb 1, 2024
1 parent 4256c15 commit 4377dbf
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions sonic.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,7 @@ func (cfg frozenConfig) MarshalIndent(val interface{}, prefix, indent string) ([
func (cfg frozenConfig) UnmarshalFromString(buf string, val interface{}) error {
dec := decoder.NewDecoder(buf)
dec.SetOptions(cfg.decoderOpts)
err := dec.Decode(val)

/* check for errors */
if err != nil {
return err
}

return dec.CheckTrailings()
return dec.Decode(val)
}

// Unmarshal is implemented by sonic
Expand Down

0 comments on commit 4377dbf

Please sign in to comment.