Skip to content

Commit

Permalink
restore newline
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed Dec 5, 2022
1 parent 1bfeed8 commit de9ab52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk/go/common/util/mapper/mapper_decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ func (md *mapper) adjustValueForAssignment(val reflect.Value,
to reflect.Type, ty reflect.Type, key string) (reflect.Value, FieldError) {
for !val.Type().AssignableTo(to) {
// The source cannot be assigned directly to the destination. Go through all known conversions.

if val.Type().ConvertibleTo(to) {
// A simple conversion exists to make this right.
val = val.Convert(to)
Expand Down

0 comments on commit de9ab52

Please sign in to comment.