From c9939fcf7fb23e70f4539445d00fc6b1ebf805ab Mon Sep 17 00:00:00 2001 From: John Guo Date: Wed, 26 Mar 2025 22:27:48 +0800 Subject: [PATCH] up --- util/gconv/internal/converter/converter_map.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/util/gconv/internal/converter/converter_map.go b/util/gconv/internal/converter/converter_map.go index bc0834c7d..46690c2a6 100644 --- a/util/gconv/internal/converter/converter_map.go +++ b/util/gconv/internal/converter/converter_map.go @@ -338,14 +338,9 @@ func (c *Converter) doMapConvert( if m, ok := convertedValue.(map[string]interface{}); ok { return m, nil } - if mustMapReturn { - return map[string]any{}, nil - } return nil, nil + default: - if mustMapReturn { - return map[string]any{}, nil - } return nil, nil } }