Skip to content

Commit

Permalink
ACTION FIXES
Browse files Browse the repository at this point in the history
  • Loading branch information
fmunozmiranda committed Apr 17, 2024
1 parent 2a42efb commit f56ff21
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/provider/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,6 @@ func changeStructUnknowns(a interface{}, b interface{}) interface{} {
}

resultStruct := reflect.New(valueA.Type()).Elem()
log.Printf("Type1: ", valueA.Kind())
if valueA.Kind() == reflect.Slice && valueB.Kind() == reflect.Slice {
lenA := valueA.Len()
lenB := valueB.Len()
Expand Down Expand Up @@ -805,7 +804,6 @@ func changeStructUnknowns(a interface{}, b interface{}) interface{} {
} else {
if valueA.Field(i).Type() != reflect.TypeOf(types.String{}) && valueA.Field(i).Type() != reflect.TypeOf(types.Bool{}) && valueA.Field(i).Type() != reflect.TypeOf(types.Int64{}) && valueA.Field(i).Type() != reflect.TypeOf(types.Float64{}) && valueA.Field(i).Type() != reflect.TypeOf(types.Set{}) {
// log.Printf("Entre 3 %v to field %v\n", fieldValueB.Interface(), fieldName)
log.Printf("Type: ", valueA.Field(i).Type())
nestedResult := changeStructUnknowns(fieldValueA.Interface(), fieldValueB.Interface())
fieldValueBPtr := reflect.New(fieldValueB.Type())
fieldValueBPtr.Elem().Set(reflect.ValueOf(nestedResult))
Expand Down

0 comments on commit f56ff21

Please sign in to comment.