We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cb3033 commit aa49289Copy full SHA for aa49289
cli/src/lib.rs
@@ -68,7 +68,7 @@ pub mod command {
68
{
69
if let Ok((device, _)) = device.wait_confirm().await {
70
let mut bb02 = BitBox02::from(device).with_network(network);
71
- if let Some(ref policy) = wallet.as_ref().map(|w| w.policy).flatten() {
+ if let Some(policy) = wallet.as_ref().and_then(|w| w.policy) {
72
bb02 = bb02.with_policy(policy)?;
73
}
74
hws.push(bb02.into());
0 commit comments