Avoid a wildcard match in tx construction

This commit is contained in:
Steven Roose 2024-02-02 02:02:27 +00:00
parent 9e098a5b6d
commit 9bb39a3a3f
No known key found for this signature in database
GPG Key ID: 2F2A88D7F8D68E87

View File

@ -1347,7 +1347,7 @@ impl<D> Wallet<D> {
}
Some(tx_builder::Version(x)) => x,
None if requirements.csv.is_some() => 2,
_ => 1,
None => 1,
};
// We use a match here instead of a unwrap_or_else as it's way more readable :)