Skip to content

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

refactor(embed): flatten nested storage backend check

Steven Enamakele0bc9dacb360
diff --git a/crates/openhuman-embed/src/runtime/build.rs b/crates/openhuman-embed/src/runtime/build.rs
index a8813189d9..20dbee415e 100644
--- a/crates/openhuman-embed/src/runtime/build.rs
+++ b/crates/openhuman-embed/src/runtime/build.rs
@@ -343,11 +343,9 @@ impl RuntimeBuilder {
} else {
storage_backend.or_else(openhuman_core::storage::installed)
};
- if !storage_info.configured {
- if storage_backend.is_some() {
- let installed_url = openhuman_core::storage::installed_url();
- storage_info = super::StorageInfo::backend(installed_url.as_deref());
- }
+ if !storage_info.configured && storage_backend.is_some() {
+ let installed_url = openhuman_core::storage::installed_url();
+ storage_info = super::StorageInfo::backend(installed_url.as_deref());
}
// Discovered: agents start from the config the core just loaded.