mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-30 20:46:33 -05:00
fix formatting
This commit is contained in:
parent
756f817daa
commit
a133321255
1 changed files with 4 additions and 8 deletions
|
|
@ -123,16 +123,12 @@ pub async fn refund(
|
|||
Ok(state)
|
||||
}
|
||||
Err(error) => {
|
||||
let state3 = db
|
||||
.get_states(swap_id)
|
||||
.await?
|
||||
.iter()
|
||||
.find_map(|state| {
|
||||
let state3 = db.get_states(swap_id).await?.iter().find_map(|state| {
|
||||
if let State::Bob(BobState::BtcLocked { state3, .. }) = state {
|
||||
Some(state3.clone())
|
||||
} else {
|
||||
None
|
||||
}
|
||||
} else {
|
||||
None
|
||||
}
|
||||
});
|
||||
if state3
|
||||
.expect("Error: weren't able to extract State3 from database.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue