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 } }