mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-23 23:20:57 +03:00
Forgot to fix the response slices allocation...
This commit is contained in:
parent
25d902c9d7
commit
1da0f7d412
@ -71,7 +71,7 @@ func (s search) SearchArtist(q string, offset int, size int) (*Results, error) {
|
||||
if err != nil {
|
||||
return nil, nil
|
||||
}
|
||||
res := make(Results, len(resp))
|
||||
res := make(Results, 0, len(resp))
|
||||
for _, id := range resp {
|
||||
a, err := s.artistRepo.Get(id)
|
||||
if criticalError("Artist", id, err) {
|
||||
@ -92,7 +92,7 @@ func (s search) SearchAlbum(q string, offset int, size int) (*Results, error) {
|
||||
if err != nil {
|
||||
return nil, nil
|
||||
}
|
||||
res := make(Results, len(resp))
|
||||
res := make(Results, 0, len(resp))
|
||||
for _, id := range resp {
|
||||
al, err := s.albumRepo.Get(id)
|
||||
if criticalError("Album", id, err) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user