mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-20 16:06:00 -04:00
fix formatting
This commit is contained in:
parent
a09c414484
commit
7091aa44d7
@ -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…
x
Reference in New Issue
Block a user