style: Cleaned up some comments and imports

This commit is contained in:
2026-07-20 13:46:41 -06:00
parent 344ef7526f
commit 107419966d
7 changed files with 72 additions and 47 deletions
+3 -2
View File
@@ -785,8 +785,8 @@ fn resolve_oauth_client(
0 => bail!("No OAuth-capable clients configured."),
1 => find_by_name(&candidates[0]).unwrap(),
_ => {
let choice = Select::new("Select a client to authenticate:", candidates.clone())
.prompt()?;
let choice =
Select::new("Select a client to authenticate:", candidates.clone()).prompt()?;
find_by_name(&choice)
.ok_or_else(|| anyhow!("Selected client '{choice}' not found"))?
}
@@ -800,5 +800,6 @@ fn resolve_oauth_client(
"Could not build OAuth provider for '{name}' (no oauth config in models.yaml or user config)"
)
})?;
Ok((name, provider))
}