Skip to content

Commit

Permalink
fixed more errors that happend in a specific case for map
Browse files Browse the repository at this point in the history
  • Loading branch information
JAicewizard committed Apr 30, 2020
1 parent 7ce387e commit 6bb5cd6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ func encodeValuev3(values *bytes.Buffer, d interface{}, k v3.Key) error {
encodeValuev3(values, mapRange.Value().Interface(), encodeKeyv3(mapRange.Key().Interface()))
}
}
}
if kind == reflect.Array || kind == reflect.Slice {
} else if kind == reflect.Array || kind == reflect.Slice {
value.Childrenn = uint64(val.Len())
value.Vtype = v3.ArrT
alreadyEncoded = true
Expand Down

0 comments on commit 6bb5cd6

Please sign in to comment.