There was an error while loading. Please reload this page.
1 parent 0fca2cf commit ddc5041Copy full SHA for ddc5041
1 file changed
src/fuse/util.rs
@@ -42,10 +42,9 @@ pub fn parse_fuse_path(path: &Path) -> miette::Result<Option<(NamespaceId, PathB
42
if let Some(_root) = components.next() {
43
if let Some(replica_id) = components.next() {
44
let replica_id_string = replica_id.as_os_str().to_str().unwrap_or_default();
45
- let namespace_id = NamespaceId::from(
46
- crate::fs::util::parse_array_hex_or_base32::<32>(replica_id_string)
47
- .unwrap_or_default(),
48
- );
+ let namespace_id = NamespaceId::from(crate::fs::util::parse_array_hex_or_base32::<32>(
+ replica_id_string,
+ )?);
49
let replica_path = PathBuf::from("/").join(components.as_path()).to_path_buf();
50
return Ok(Some((namespace_id, replica_path)));
51
} else {
0 commit comments