From 08f5df1f0a2e22876a5b49a4f9e2e05a61df882a Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 26 Oct 2026 21:56:20 +0100 Subject: make clippy happy again --- src/api/peers.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/api/peers.rs') diff --git a/src/api/peers.rs b/src/api/peers.rs index 9af24c0..f0fd1d9 100644 --- a/src/api/peers.rs +++ b/src/api/peers.rs @@ -186,15 +186,14 @@ pub(crate) async fn delete_peer( .map_err(|_| StatusCode::BAD_REQUEST)?; // Unknown locally is fine: other nodes may still know the peer. - if let Some(peer_state_mutex) = state.get_peer_state(&peer).await { - if peer_state_mutex + if let Some(peer_state_mutex) = state.get_peer_state(&peer).await + && peer_state_mutex .lock() .await .is_alive(&state.timing, Instant::now()) - && !force.allows("alive") - { - return Err(StatusCode::CONFLICT); - } + && !force.allows("alive") + { + return Err(StatusCode::CONFLICT); } let record = -- cgit v1.3.1