Browse Source

experimenting with recursive update

reid 2 years ago
parent
commit
7fc43a3b61
1 changed files with 0 additions and 1 deletions
  1. 0 1
      broadcast/broadcast.go

+ 0 - 1
broadcast/broadcast.go

@@ -291,7 +291,6 @@ func recursiveUpdate(dst, src reflect.Value) error {
 			dstVal := dst.MapIndex(key)
 			if !dstVal.IsValid() {
 				dstVal = reflect.New(dst.Type().Elem()).Elem()
-				dst.SetMapIndex(key, dstVal)
 			}
 			// Recursive call to handle potential nested maps or structs
 			if err := recursiveUpdate(dstVal, srcVal); err != nil {