Skip to content

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

test(openhuman-app): reformat allow command extraction

Steven Enamakeld473c6260eab
diff --git a/crates/openhuman-app/src/lib_tests.rs b/crates/openhuman-app/src/lib_tests.rs
index 6f3c0333c3..1522fd56a1 100644
--- a/crates/openhuman-app/src/lib_tests.rs
+++ b/crates/openhuman-app/src/lib_tests.rs
@@ -1039,7 +1039,10 @@ fn allowed_ipc_commands() -> (
let doc: toml::Value = toml::from_str(&text).expect("parse permission file");
for perm in doc["permission"].as_array().expect("[[permission]] array") {
identifiers.insert(perm["identifier"].as_str().unwrap().to_string());
- let allow = perm["commands"]["allow"].as_array().cloned().unwrap_or_default();
+ let allow = perm["commands"]["allow"]
+ .as_array()
+ .cloned()
+ .unwrap_or_default();
commands.extend(allow.iter().map(|c| c.as_str().unwrap().to_string()));
}
}