Skip to content

Commit

Permalink
fixes issue darccio#187
Browse files Browse the repository at this point in the history
  • Loading branch information
vsemichev committed Jun 5, 2024
1 parent cde9f0e commit 6b830ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion map.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func deepMap(dst, src reflect.Value, visited map[uintptr]*visit, depth int, conf
}
fieldName := field.Name
fieldName = changeInitialCase(fieldName, unicode.ToLower)
if v, ok := dstMap[fieldName]; !ok || (isEmptyValue(reflect.ValueOf(v), !config.ShouldNotDereference) || overwrite) {
if v, ok := dstMap[fieldName]; !ok || (isEmptyValue(reflect.ValueOf(v), !config.ShouldNotDereference) && overwrite) {
dstMap[fieldName] = src.Field(i).Interface()
}
}
Expand Down

0 comments on commit 6b830ff

Please sign in to comment.