fix(lint): use if-let instead of single-arm match in server start

Fixes clippy::single_match_else warning that was blocking CI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-04-14 07:54:21 -04:00
parent 148f6c84c2
commit 5acfa46ddd

View file

@ -92,12 +92,11 @@ async fn ensure_server_running_with_bind(
config: Some(config_path.to_path_buf()),
};
let bind_request = match bind_request {
Some(bind_request) => bind_request,
None => {
let settings = load_settings_config(Some(config_path))?;
serve::resolve_bind_request_from_settings(&settings, None)?
}
let bind_request = if let Some(bind_request) = bind_request {
bind_request
} else {
let settings = load_settings_config(Some(config_path))?;
serve::resolve_bind_request_from_settings(&settings, None)?
};
match execute_daemon(