Skip to content

Commit

Permalink
fix: fix MarshalJSON (#1820)
Browse files Browse the repository at this point in the history
  • Loading branch information
danvixent authored Oct 26, 2023
1 parent c185d35 commit e87edff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ func (ft *FlagLevel) UnmarshalJSON(v []byte) error {
func (ft FlagLevel) MarshalJSON() ([]byte, error) {
switch ft {
case ExperimentalFlagLevel:
return []byte(Experimental), nil
return []byte(fmt.Sprintf(`"%s"`, []byte(Experimental))), nil
default:
return []byte(""), nil
return []byte(fmt.Sprintf(`"%s"`, []byte(Experimental))), nil
}
}

Expand Down

0 comments on commit e87edff

Please sign in to comment.