From 830972a518dceb1e568f3ab065c3ac1d7095e7e0 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Wed, 10 Aug 2022 11:34:44 +1000 Subject: [PATCH] Fix lint --- unifi/json.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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