diff --git a/unifi/json.go b/unifi/json.go index 00e918b..aaaf558 100644 --- a/unifi/json.go +++ b/unifi/json.go @@ -83,7 +83,7 @@ func (e *booleanishString) UnmarshalJSON(b []byte) error { } func (e *booleanishString) MarshalJSON(b []byte) ([]byte, error) { - if *e == true { + if *e { return []byte(`"enabled"`), nil } return []byte(`"disabled"`), nil