From 381786307da1ce5b97a49e286cdd4b21976a324a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Wed, 14 Feb 2024 18:42:30 +0000 Subject: [PATCH] getBytes: return nil instead of []byte{} when nil --- flow/model/qvalue/qvalue.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flow/model/qvalue/qvalue.go b/flow/model/qvalue/qvalue.go index fba56a9f07..7d6fc3b0d2 100644 --- a/flow/model/qvalue/qvalue.go +++ b/flow/model/qvalue/qvalue.go @@ -587,8 +587,7 @@ func getBytes(v interface{}) ([]byte, bool) { case string: return []byte(value), true case nil: - // return empty byte array - return []byte{}, true + return nil, true default: return nil, false }