From 60d5d9f1f10d8086525b3549c8a5656c973797dc Mon Sep 17 00:00:00 2001 From: Albert Armea Date: Thu, 1 Jan 2026 22:55:53 -0500 Subject: [PATCH] lint --- crates/shepherdd/src/main.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/crates/shepherdd/src/main.rs b/crates/shepherdd/src/main.rs index 9fafa03..01ceb40 100644 --- a/crates/shepherdd/src/main.rs +++ b/crates/shepherdd/src/main.rs @@ -231,12 +231,10 @@ impl Service { let engine = engine.lock().await; if let Some(session) = engine.current_session() { info!(session_id = %session.plan.session_id, "Stopping active session"); - if let Some(handle) = &session.host_handle { - if let Err(e) = host.stop(handle, HostStopMode::Graceful { - timeout: Duration::from_secs(5), - }).await { - warn!(error = %e, "Failed to stop session gracefully"); - } + if let Some(handle) = &session.host_handle && let Err(e) = host.stop(handle, HostStopMode::Graceful { + timeout: Duration::from_secs(5), + }).await { + warn!(error = %e, "Failed to stop session gracefully"); } } }