Simplify error return.

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

View File

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