This commit is contained in:
Joshua Spence
2022-08-10 11:34:44 +10:00
parent 1ac863de1f
commit 830972a518

View File

@@ -83,7 +83,7 @@ func (e *booleanishString) UnmarshalJSON(b []byte) error {
} }
func (e *booleanishString) MarshalJSON(b []byte) ([]byte, error) { func (e *booleanishString) MarshalJSON(b []byte) ([]byte, error) {
if *e == true { if *e {
return []byte(`"enabled"`), nil return []byte(`"enabled"`), nil
} }
return []byte(`"disabled"`), nil return []byte(`"disabled"`), nil