refactor: remove needless Error::from

This commit is contained in:
Joonas Koivunen
2024-07-25 12:26:33 +00:00
parent ff52901028
commit 7f241bd379

View File

@@ -1139,8 +1139,7 @@ pub(super) async fn detach_and_reparent(
if let Some(ancestor) = existing {
Ancestor::Detached(ancestor, ancestor_lsn)
} else {
let direct_children =
reparented_direct_children(detached, tenant).map_err(Error::from)?;
let direct_children = reparented_direct_children(detached, tenant)?;
return Ok(DetachingAndReparenting::AlreadyDone(direct_children));
}
} else {