mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-09 11:52:35 +03:00
Fixed bug on reflect and slice
This commit is contained in:
parent
508bf7152f
commit
04513d38f0
@ -83,7 +83,7 @@ func (r *ledisRepository) purgeInactive(activeList interface{}, getId getIdFunc)
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
reflected := reflect.ValueOf(activeList).Elem()
|
reflected := reflect.ValueOf(activeList)
|
||||||
totalActive := reflected.Len()
|
totalActive := reflected.Len()
|
||||||
for i := 0; i < totalActive; i++ {
|
for i := 0; i < totalActive; i++ {
|
||||||
a := reflected.Index(i)
|
a := reflected.Index(i)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user