From 066d1a7a8c623cdfb26407e2fc2e48097a6e87e3 Mon Sep 17 00:00:00 2001 From: Jed Date: Tue, 9 Jan 2024 16:23:11 +1100 Subject: [PATCH] minor formatting to pass ci checks --- crates/bevy_hierarchy/src/child_builder.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/bevy_hierarchy/src/child_builder.rs b/crates/bevy_hierarchy/src/child_builder.rs index cd260cf9afd24..c57ec6a89f0ff 100644 --- a/crates/bevy_hierarchy/src/child_builder.rs +++ b/crates/bevy_hierarchy/src/child_builder.rs @@ -230,10 +230,8 @@ impl Command for PopChild { .map(|children| children.last().copied()) }; - if let Some(child_id) = last_child_id { - if let Some(child_id) = child_id { - remove_children(self.parent, &[child_id], world); - } + if let Some(Some(child_id)) = last_child_id { + remove_children(self.parent, &[child_id], world); } } }