fix: exit early when we have no artists
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed

This commit is contained in:
Lys 2023-10-18 23:06:58 +03:00
parent 7b78375402
commit 88b14dd761
Signed by: lyssieth
GPG key ID: C9CF3D614FAA3940

View file

@ -155,6 +155,11 @@ fn format_artist(
actual_artists.extend(album_artists.into_iter().map(|v| (4, v))); // Prioritize album artists over track artists
}
if actual_artists.is_empty() {
// return early. No artists found
return None;
}
let mut actual_artists = actual_artists
.into_iter()
.flat_map(|(prio, v)| {