1
0
mirror of https://github.com/gogf/gf.git synced 2025-04-05 11:18:50 +08:00
This commit is contained in:
John Guo 2025-03-26 22:27:48 +08:00
parent a9953a4729
commit c9939fcf7f

View File

@ -338,14 +338,9 @@ func (c *Converter) doMapConvert(
if m, ok := convertedValue.(map[string]interface{}); ok { if m, ok := convertedValue.(map[string]interface{}); ok {
return m, nil return m, nil
} }
if mustMapReturn {
return map[string]any{}, nil
}
return nil, nil return nil, nil
default: default:
if mustMapReturn {
return map[string]any{}, nil
}
return nil, nil return nil, nil
} }
} }