Skip to content

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

fix(network): satisfy clippy question-mark lint in x402 wallet gate

Steven Enamakel97326344c17e
diff --git a/crates/openhuman-core/src/tools/impl/network/host.rs b/crates/openhuman-core/src/tools/impl/network/host.rs
index 5313ad0ce9..23fc0ae78f 100644
--- a/crates/openhuman-core/src/tools/impl/network/host.rs
+++ b/crates/openhuman-core/src/tools/impl/network/host.rs
@@ -185,9 +185,7 @@ mod x402 {
let config = crate::config::rpc::load_config_with_timeout()
.await
.map_err(|error| format!("x402 payment failed: {error}"))?;
- if let Err(refused) = declined_when_wallet_off(&config) {
- return Err(refused);
- }
+ declined_when_wallet_off(&config)?;
let owner = crate::security::approval::APPROVAL_CHAT_CONTEXT
.try_with(|context| tinywallet_bus::wire::QuoteOwner {
thread_id: context.thread_id.clone(),