mirror of
https://github.com/redis/go-redis.git
synced 2025-04-17 20:17:02 +03:00
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…
x
Reference in New Issue
Block a user