mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
accounts/abi: remove unnecessary dst.CanSet check
This commit is contained in:
parent
cdc2b87647
commit
3f6a41a22d
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ func set(dst, src reflect.Value) error {
|
||||||
dst.Set(src)
|
dst.Set(src)
|
||||||
case dstType.Kind() == reflect.Slice && srcType.Kind() == reflect.Slice && dst.CanSet():
|
case dstType.Kind() == reflect.Slice && srcType.Kind() == reflect.Slice && dst.CanSet():
|
||||||
return setSlice(dst, src)
|
return setSlice(dst, src)
|
||||||
case dstType.Kind() == reflect.Array && dst.CanSet():
|
case dstType.Kind() == reflect.Array:
|
||||||
return setArray(dst, src)
|
return setArray(dst, src)
|
||||||
case dstType.Kind() == reflect.Struct:
|
case dstType.Kind() == reflect.Struct:
|
||||||
return setStruct(dst, src)
|
return setStruct(dst, src)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue