Skip to content

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

fix(shell): remove redundant return in command analysis branch

Steven Enamakel34584a2dd41e
diff --git a/crates/openhuman-core/src/tools/impl/system/shell.rs b/crates/openhuman-core/src/tools/impl/system/shell.rs
index 8db4220d5e..4d01749b8a 100644
--- a/crates/openhuman-core/src/tools/impl/system/shell.rs
+++ b/crates/openhuman-core/src/tools/impl/system/shell.rs
@@ -160,7 +160,7 @@ impl ShellHost {
.map_err(|_| anyhow::anyhow!("command analysis is unavailable"))?;
let analysis = serde_json::to_value(analysis)
.map_err(|_| anyhow::anyhow!("command analysis is unavailable"))?;
- return Ok(Some(json!({ "analysis": analysis })));
+ Ok(Some(json!({ "analysis": analysis })))
}
#[cfg(not(feature = "modules"))]
{