From 079c394d4c5e09852d87f6c2c391784c399d5085 Mon Sep 17 00:00:00 2001 From: peg Date: Tue, 17 Dec 2024 16:03:07 +0100 Subject: [PATCH] Clippy --- crates/threshold-signature-server/src/helpers/launch.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/threshold-signature-server/src/helpers/launch.rs b/crates/threshold-signature-server/src/helpers/launch.rs index d8e43ab2f..3a541eddd 100644 --- a/crates/threshold-signature-server/src/helpers/launch.rs +++ b/crates/threshold-signature-server/src/helpers/launch.rs @@ -302,11 +302,10 @@ pub async fn check_node_prerequisites(app_state: AppState) { tracing::error!("Unable to query the account balance of `{}`", &account_id); "Unable to query account balance".to_string() })?; - Ok(if has_minimum_balance { - () - } else { + if !has_minimum_balance { Err("Minimum balance not met".to_string())? - }) + } + Ok(()) }; if let Err(error) = backoff::future::retry(backoff.clone(), balance_query).await {