fix formatting

This commit is contained in:
patrini32 2024-06-08 20:36:07 +03:00 committed by patrini32
parent a09c414484
commit 7091aa44d7

View File

@ -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.")