Skip to content

Commit 6f29660

Browse files
committed
return b64 even if skipping encode
1 parent 801eeb0 commit 6f29660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbos/serialization.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func isNilValue(data any) bool {
2929
func serialize(data any) (string, error) {
3030
// Handle nil and nil-able type cases (pointer, slice, map, chan, func, interface)
3131
if isNilValue(data) {
32-
return "", nil
32+
return base64.StdEncoding.EncodeToString([]byte{}), nil
3333
}
3434

3535
// Lazy registration of the type for gob encoding

0 commit comments

Comments
 (0)