Skip to content

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

refactor(mcp): collapse closure body onto one line

Steven Enamakelef85e1590d5a
diff --git a/crates/openhuman-core/src/mcp/module_client/lifecycle.rs b/crates/openhuman-core/src/mcp/module_client/lifecycle.rs
index e1f85065ee..15bd234f30 100644
--- a/crates/openhuman-core/src/mcp/module_client/lifecycle.rs
+++ b/crates/openhuman-core/src/mcp/module_client/lifecycle.rs
@@ -224,10 +224,7 @@ impl McpConfiguredClient {
reservation: &Arc<CleanupReservation>,
) -> Option<bool> {
table().finish_if_closed(data_dir, client, reservation, || {
- client
- .state
- .try_lock()
- .is_ok_and(|state| state.is_closed())
+ client.state.try_lock().is_ok_and(|state| state.is_closed())
})
}