Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Dec 17, 2024
1 parent a05a2a3 commit 079c394
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/threshold-signature-server/src/helpers/launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 079c394

Please sign in to comment.