Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(runtime): simplify error handling in message processing

Steven Enamakel3573231812ea
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
index cef5f31cf2..7088ae1535 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
@@ -419,9 +419,7 @@ pub(crate) async fn process_channel_runtime_message(
.await
{
Ok(input) => Some(Ok(input)),
- Err(error) => {
- Some(Err(error))
- }
+ Err(error) => Some(Err(error)),
}
} else {
Some(Err("native media has no selected host agent".to_owned()))