From 73f29b1d157385c4b22907356beabc0406c5b857 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Wed, 7 Aug 2024 00:31:18 -0700 Subject: [PATCH] cosmetic --- nullable_unmarshaljson.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nullable_unmarshaljson.go b/nullable_unmarshaljson.go index 116a304..8aec384 100644 --- a/nullable_unmarshaljson.go +++ b/nullable_unmarshaljson.go @@ -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)