Skip to content

Commit

Permalink
fix: Fix json.Unmarshal formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Oct 30, 2024
1 parent 67825cf commit 34c009c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/beacon/state/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (s *Spec) Validate() error {

func dataVersionFromString(name string) (sp.DataVersion, error) {
var v sp.DataVersion
if err := json.Unmarshal([]byte(fmt.Sprintf("\"%q\"", name)), &v); err != nil {
if err := json.Unmarshal([]byte(fmt.Sprintf("\"%s\"", name)), &v); err != nil {
return sp.DataVersionUnknown, err
}

Expand Down

0 comments on commit 34c009c

Please sign in to comment.