mirror of https://github.com/go-redis/redis.git
Pointer -> Ptr (#2458)
This commit is contained in:
parent
6045d2e456
commit
6ec458549e
|
@ -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()))
|
||||
|
|
Loading…
Reference in New Issue