From ec0d29285ee17ef9f49333aa65356d91542cc399 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 5 Apr 2026 14:55:28 +0200 Subject: [PATCH] daemon: Remove check that can never fail --- daemon/src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/daemon/src/lib.rs b/daemon/src/lib.rs index 5a19ea961d..36376a05bc 100644 --- a/daemon/src/lib.rs +++ b/daemon/src/lib.rs @@ -67,11 +67,7 @@ impl Daemon { let mut data = [0]; match read_pipe.read_exact(&mut data) { - Ok(()) => { - if data[0] != 0 { - eprintln!("daemon: {cmd:?} failed with {}", data[0]); - } - } + Ok(()) => {} Err(err) if err.kind() == io::ErrorKind::UnexpectedEof => { eprintln!("daemon: {cmd:?} exited without notifying readiness"); }