mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 09:22:55 +00:00
refactor: remove needless Error::from
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user