Skip to content

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

style: format integration route guard

Steven Enamakel3fc0c64e39c9
diff --git a/crates/openhuman-core/src/integrations/client/requests.rs b/crates/openhuman-core/src/integrations/client/requests.rs
index a8d9092c9e..78ef1d6ece 100644
--- a/crates/openhuman-core/src/integrations/client/requests.rs
+++ b/crates/openhuman-core/src/integrations/client/requests.rs
@@ -10,12 +10,9 @@ pub(super) fn managed_budget_applies_to_path(path: &str) -> bool {
fn reject_privileged_backend_path(method: &str, path: &str) -> anyhow::Result<()> {
let route = path.split('?').next().unwrap_or(path);
- if route
- .split('/')
- .any(|segment| {
- segment.eq_ignore_ascii_case("webhooks") || segment.eq_ignore_ascii_case("admin")
- })
- {
+ if route.split('/').any(|segment| {
+ segment.eq_ignore_ascii_case("webhooks") || segment.eq_ignore_ascii_case("admin")
+ }) {
anyhow::bail!(
"route is intentionally not exposed by the SDK: {} {}",
method,