mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-19 00:13:37 +02:00
fix(maputil): prevent nil value overwrite (#1755)
Signed-off-by: zhengbayi <ban11111@qq.com> Co-authored-by: zhengbayi <zhengbaiyi@sensetime.com>
This commit is contained in:
@@ -231,6 +231,9 @@ func MergeMaps(a, b map[string]interface{}) map[string]interface{} {
|
||||
out[k] = v
|
||||
}
|
||||
for k, v := range b {
|
||||
if v == nil {
|
||||
continue
|
||||
}
|
||||
if v, ok := v.(map[string]interface{}); ok {
|
||||
if bv, ok := out[k]; ok {
|
||||
if bv, ok := bv.(map[string]interface{}); ok {
|
||||
|
||||
Reference in New Issue
Block a user