From 827944170a47f6184f975a71e9805727248d66ed Mon Sep 17 00:00:00 2001 From: Connor Johnstone Date: Tue, 24 Mar 2026 12:57:12 -0400 Subject: [PATCH] format --- src/library.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/library.rs b/src/library.rs index 6d9bdda..1f309c3 100644 --- a/src/library.rs +++ b/src/library.rs @@ -302,14 +302,11 @@ async fn add_track_inner( user_id: Option, ) -> WatchResult { // Skip if a wanted_item with this recording MBID already exists - if let Some(mbid) = recording_mbid { - if queries::wanted::find_by_mbid(conn, mbid) - .await? - .is_some() - { - tracing::debug!(title = title, mbid = mbid, "already in watchlist, skipping"); - return Ok(false); - } + if let Some(mbid) = recording_mbid + && queries::wanted::find_by_mbid(conn, mbid).await?.is_some() + { + tracing::debug!(title = title, mbid = mbid, "already in watchlist, skipping"); + return Ok(false); } let artist = queries::artists::upsert(conn, artist_name, artist_mbid).await?;