From 26c368c35e26c7396890568eb377375271c62f9b Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Thu, 11 Jun 2026 23:26:35 -0400 Subject: [PATCH] fix(recommendation): use type conversion for fallback rows (staticcheck S1016) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit golangci-lint v2 (CI-only; local is v1) flagged the field-by-field struct literals — the fallback and you-might-like row types are identical, so convert directly instead. Co-Authored-By: Claude Opus 4.8 (1M context) --- internal/recommendation/home.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/internal/recommendation/home.go b/internal/recommendation/home.go index a5833aa0..eab129db 100644 --- a/internal/recommendation/home.go +++ b/internal/recommendation/home.go @@ -228,9 +228,7 @@ func topUpYouMightLikeArtists( if _, dup := excluded[r.Artist.ID]; dup { continue } - result = append(result, dbq.ListYouMightLikeArtistsForUserRow{ - Artist: r.Artist, CoverAlbumID: r.CoverAlbumID, AlbumCount: r.AlbumCount, - }) + result = append(result, dbq.ListYouMightLikeArtistsForUserRow(r)) if len(result) >= HomeYouMightLikeLimit { break } @@ -261,9 +259,7 @@ func topUpYouMightLikeAlbums( if _, dup := excluded[r.Album.ID]; dup { continue } - result = append(result, dbq.ListYouMightLikeAlbumsForUserRow{ - Album: r.Album, ArtistName: r.ArtistName, - }) + result = append(result, dbq.ListYouMightLikeAlbumsForUserRow(r)) if len(result) >= HomeYouMightLikeLimit { break }