Simplify error return.

This commit is contained in:
Orne Brocaar 2022-11-04 14:30:55 +00:00
parent 347ac6fcfa
commit 42d6f62509

@ -304,9 +304,7 @@ pub async fn get_frame_logs(
.collect(),
};
if let Err(e) = channel.blocking_send(pl) {
return Err(anyhow::Error::new(e));
}
channel.blocking_send(pl)?;
}
}
"down" => {
@ -337,9 +335,7 @@ pub async fn get_frame_logs(
.collect(),
};
if let Err(e) = channel.blocking_send(pl) {
return Err(anyhow::Error::new(e));
}
channel.blocking_send(pl)?;
}
}
_ => {