Skip to content

Commit

Permalink
remove unused func (wrong signature)
Browse files Browse the repository at this point in the history
  • Loading branch information
paultyng committed Oct 31, 2022
1 parent 49ed8b8 commit 71e11b1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions unifi/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,3 @@ func (e *booleanishString) UnmarshalJSON(b []byte) error {
}
return errors.New("Could not unmarshal JSON value.")
}

func (e *booleanishString) MarshalJSON(b []byte) ([]byte, error) {
if *e {
return []byte(`"enabled"`), nil
}
return []byte(`"disabled"`), nil
}

0 comments on commit 71e11b1

Please sign in to comment.