Skip to content

Reason Network: your team's coding agents, talking to each other. The engine behind `reason network`.

wizard: satisfy clippy's some_filter lint

Lars Talian784bd38851c2
diff --git a/src/wizard.rs b/src/wizard.rs
index 8b2094f..0c20c44 100644
--- a/src/wizard.rs
+++ b/src/wizard.rs
@@ -101,7 +101,8 @@ pub async fn onboard(start: Option<bool>, team: Option<String>, code: Option<Str
if !confirm("Try again?").initial_value(true).interact()? {
return Err(anyhow!("not joined"));
}
- code = Some(c).filter(|_| e.to_string().contains("reach"));
+ // Unreachable: the same code may work in a moment. Anything else: ask for a new one.
+ code = e.to_string().contains("reach").then_some(c);
}
}
}