From a67cdd9afaa4f576f9642480145118a5ec0a31c4 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sat, 13 Jan 2024 14:43:17 +0100 Subject: [PATCH] Clippy --- src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4d3e27b..da07135 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -931,10 +931,8 @@ impl MusicHoard { artist_sort.as_ref().unwrap() ))); } - } else { - if artist_sort.is_some() { - artist.sort = artist_sort; - } + } else if artist_sort.is_some() { + artist.sort = artist_sort; } if album_ids[&artist_id].contains(&album_id) {