1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Pointer -> Ptr (#2458)

This commit is contained in:
Chandra Eepuri
2023-02-24 11:17:58 +05:30
committed by GitHub
parent 6045d2e456
commit 6ec458549e

View File

@ -89,7 +89,7 @@ func (s StructValue) Scan(key string, value string) error {
}
v := s.value.Field(field.index)
isPtr := v.Kind() == reflect.Pointer
isPtr := v.Kind() == reflect.Ptr
if isPtr && v.IsNil() {
v.Set(reflect.New(v.Type().Elem()))