Skip to content

Commit

Permalink
remove scale diff
Browse files Browse the repository at this point in the history
  • Loading branch information
jimjbrettj committed Sep 11, 2023
1 parent e88f74a commit f8b3ee2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/scale/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,13 +452,6 @@ func (ds *decodeState) decodeMap(dstv reflect.Value) (err error) {

tempElemType := reflect.TypeOf(in).Elem()
tempElem := reflect.New(tempElemType).Elem()

_, ok := tempElemType.MethodByName("New")
if ok {
tempElem = tempElem.MethodByName("New").Call([]reflect.Value{})[0]
tempElem = tempElem.Elem()
}

err = ds.unmarshal(tempElem)
if err != nil {
return fmt.Errorf("decoding value %d of %d: %w", i+1, numberOfTuples, err)
Expand Down

0 comments on commit f8b3ee2

Please sign in to comment.