refactor(node): return Result<&T> from get aspect

This commit is contained in:
Nova
2022-10-29 07:32:51 -04:00
parent c6316b4e8b
commit 09a2572c3b
3 changed files with 4 additions and 3 deletions

View File

@@ -299,6 +299,7 @@ pub fn find_spatial(
calling_client
.get_node(node_name, node_path)?
.get_aspect(node_name, "spatial", |n| &n.spatial)
.cloned()
}
pub fn find_spatial_parent(
calling_client: &Arc<Client>,