From 8bf3a337cf228b5370fedd083ae23046b7a5d124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sat, 23 Mar 2024 20:29:46 +0100 Subject: [PATCH] v0.0.422 --- dataext/optional.go | 4 ---- goextVersion.go | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/dataext/optional.go b/dataext/optional.go index f4bad9a..7f2a4a3 100644 --- a/dataext/optional.go +++ b/dataext/optional.go @@ -16,10 +16,6 @@ func (m JsonOpt[T]) MarshalJSON() ([]byte, error) { return []byte("null"), nil // actually this would be undefined - but undefined is not valid JSON } - if m.value == nil { - return []byte("null"), nil - } - return json.Marshal(m.value) } diff --git a/goextVersion.go b/goextVersion.go index 330419b..7310ac2 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.421" +const GoextVersion = "0.0.422" -const GoextVersionTimestamp = "2024-03-23T20:28:51+0100" +const GoextVersionTimestamp = "2024-03-23T20:29:46+0100"