refactor: Simplify by removing ? operator

`out.flush()` already returns a `io::Result<()>`, so there is no need for `?` operator and `Ok(())`
This commit is contained in:
Neil 2025-03-15 12:31:56 -07:00
parent 220d913cbc
commit 1e3026ccb7
No known key found for this signature in database
GPG key ID: 0B70FA5103DF29A4

View file

@ -30,6 +30,5 @@ pub fn write_json(out: &mut impl Write, msg: &str) -> io::Result<()> {
tracing::debug!("> {}", msg);
out.write_all(msg.as_bytes())?;
out.write_all(b"\n")?;
out.flush()?;
Ok(())
out.flush()
}