Skip to content

Commit fc45109

Browse files
danicc097mromaszewicz
authored andcommitted
fix array of objects unmarshaling
1 parent 87a495b commit fc45109

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

deepobject.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ func (f *fieldOrValue) appendPathValue(path []string, value string) {
111111
}
112112

113113
func makeFieldOrValue(paths [][]string, values []string) fieldOrValue {
114-
115114
f := fieldOrValue{
116115
fields: make(map[string]fieldOrValue),
117116
}
@@ -193,7 +192,7 @@ func fieldIndicesByJSONTag(i interface{}) (map[string]int, error) {
193192
}
194193

195194
func assignPathValues(dst interface{}, pathValues fieldOrValue) error {
196-
//t := reflect.TypeOf(dst)
195+
// t := reflect.TypeOf(dst)
197196
v := reflect.ValueOf(dst)
198197

199198
iv := reflect.Indirect(v)

0 commit comments

Comments
 (0)