master
Charles Iliya Krempeaux 2024-08-07 00:31:18 -07:00
parent 90d138095e
commit 73f29b1d15
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ func (receiver *Nullable[T]) UnmarshalJSON(data []byte) error {
}
switch interface{}(receiver.value).(type) {
case bool, string,json.Unmarshaler:
case bool,string,json.Unmarshaler:
// these are OK.
default:
return erorr.Errorf("nul: cannot unmarshal into something of type %T from JSON because parameterized type is %T rather than bool, string, or json.Unmarshaler", receiver, receiver.value)