From 8d0c04bc3f6a4edac6f07b057ce31787bdcf3a77 Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Tue, 10 Dec 2024 20:42:59 +0000 Subject: [PATCH] wip --- src/cli/supervisor/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/supervisor/mod.rs b/src/cli/supervisor/mod.rs index 8d347b5..7056896 100644 --- a/src/cli/supervisor/mod.rs +++ b/src/cli/supervisor/mod.rs @@ -68,7 +68,7 @@ pub fn start_if_not_running() -> Result<()> { let sf = StateFile::get(); if let Some(d) = sf.daemons.get("pitchfork") { if let Some(pid) = d.pid { - if let Some(proc) = Procs::new().get_process(pid) { + if Procs::new().get_process(pid).is_some() { return Ok(()); } }