Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ligulfzhou committed May 12, 2024
1 parent 43599f4 commit 07bf3f6
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions mutiny-core/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,13 @@ impl MutinyAuthClient {
log_error!(self.logger, "Error receiving LNURL from ws: {e}");
MutinyError::LnUrlFailure
})?;
let lnurl = match LnUrl::from_str(&lnurl_auth_str) {
Ok(l) => l,
Err(e) => {
log_error!(
self.logger,
"Error parsing LNURL string {lnurl_auth_str}: {e}"
);
return Err(MutinyError::LnUrlFailure);
}
};
let lnurl = LnUrl::from_str(&lnurl_auth_str).map_err(|e| {
log_error!(
self.logger,
"Error parsing LNURL string {lnurl_auth_str}: {e}"
);
Err(MutinyError::LnUrlFailure)
})?;

make_lnurl_auth_connection(
self.auth.clone(),
Expand Down

0 comments on commit 07bf3f6

Please sign in to comment.