fix: address code review findings

This commit is contained in:
2026-07-19 19:22:18 +03:00
parent f1839ad9e7
commit 401c1218b6
4 changed files with 21 additions and 14 deletions

View File

@@ -57,7 +57,7 @@ func SyncArtistDiscography(
if err != nil {
return nil, fmt.Errorf("sync artist discography: read artist filter options: %w", err)
}
filtered := cachedReleases[:0]
filtered := make([]database.ExternalRelease, 0, len(cachedReleases))
for _, r := range cachedReleases {
if opts.IgnoreSingles && r.Type == "Single" {
continue