Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

_ #1182

Closed
wants to merge 1 commit into from
Closed

_ #1182

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting a compile error, can't wrap this in Err

})?;

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