mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-16 20:12:22 +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 {
|
||||
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…
x
Reference in New Issue
Block a user