chore: modernize
This commit is contained in:
parent
f332798dd0
commit
1169a3c8b9
4 changed files with 4 additions and 4 deletions
|
|
@ -210,7 +210,7 @@ func DecodeOtherSliceOrMap(other, res any) error {
|
|||
val := reflect.ValueOf(other)
|
||||
typ := reflect.TypeOf(other)
|
||||
|
||||
if typ.Kind() == reflect.Ptr {
|
||||
if typ.Kind() == reflect.Pointer {
|
||||
typ = typ.Elem()
|
||||
val = reflect.Indirect(val)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue