Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Oct 6, 2023
1 parent 53001a3 commit 2e508f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libs/sdk-core/src/breez_services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -773,9 +773,7 @@ impl BreezServices {

/// Connects to the selected LSP, if any
async fn connect_lsp_peer(&self) -> Result<()> {
let lsp = self.lsp_info().await.ok();
if lsp.is_some() {
let lsp_info = lsp.unwrap().clone();
if let Ok(lsp_info) = self.lsp_info().await {
let node_id = lsp_info.pubkey;
let address = lsp_info.host;
debug!("connecting to lsp {}@{}", node_id.clone(), address.clone());
Expand Down

0 comments on commit 2e508f2

Please sign in to comment.