agent-ctl: Remove redundant returns
Remove a number of redundant `return`'s.
@@ -306,19 +306,17 @@ fn real_main() -> Result<()> {
match subcmd {
"generate-cid" => {
println!("{}", utils::random_container_id());
- return Ok(());
+ Ok(())
}
"generate-sid" => {
println!("{}", utils::random_sandbox_id());
- return Ok(());
+ Ok(())
}
"examples" => {
println!("{}", make_examples_text(name));
- return Ok(());
- }
- "connect" => {
- return connect(name, args);
+ Ok(())
}
+ "connect" => connect(name, args),
_ => return Err(anyhow!(format!("invalid sub-command: {:?}", subcmd))),
}
}
