Skip to content

Commit

Permalink
minor formatting to pass ci checks
Browse files Browse the repository at this point in the history
  • Loading branch information
TirushOne committed Jan 9, 2024
1 parent 4ea32d7 commit 30cf834
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/bevy_hierarchy/src/child_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl Command for RemoveChildren {
}
}

/// Command that removes the last [`Child`] from an entity
/// Command that removes the last child from an entity
pub struct PopChild {
/// The parent from whom the last child should be removed
pub parent: Entity,
Expand All @@ -230,8 +230,8 @@ impl Command for PopChild {
.map(|children| children.last().copied())
};

if let Some(optional_child_id) = last_child_id {
if let Some(child_id) = optional_child_id {
if let Some(child_id) = last_child_id {
if let Some(child_id) = child_id {
remove_children(self.parent, &[child_id], world);
}
}
Expand Down

0 comments on commit 30cf834

Please sign in to comment.