Revert "fix formatting"

This reverts commit 990206596b.
This commit is contained in:
patrini32 2024-06-08 21:32:06 +03:00 committed by patrini32
parent a133321255
commit 1f9ac64166

View file

@ -123,12 +123,16 @@ 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.")