Fixed bug on reflect and slice

This commit is contained in:
Deluan 2016-03-18 21:07:57 -04:00
parent 508bf7152f
commit 04513d38f0

View File

@ -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)