Fixed bug on reflect and slice
This commit is contained in:
parent
508bf7152f
commit
04513d38f0
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ func (r *ledisRepository) purgeInactive(activeList interface{}, getId getIdFunc)
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reflected := reflect.ValueOf(activeList).Elem()
|
||||
reflected := reflect.ValueOf(activeList)
|
||||
totalActive := reflected.Len()
|
||||
for i := 0; i < totalActive; i++ {
|
||||
a := reflected.Index(i)
|
||||
|
|
|
|||
Loading…
Reference in a new issue