diff --git a/crates/bevy_ecs/src/world/entity_ref.rs b/crates/bevy_ecs/src/world/entity_ref.rs index b6434d47f37db..251945d711b09 100644 --- a/crates/bevy_ecs/src/world/entity_ref.rs +++ b/crates/bevy_ecs/src/world/entity_ref.rs @@ -703,9 +703,7 @@ fn fetch_table( location: EntityLocation, component_id: ComponentId, ) -> Option<&Column> { - let table = &world.storages.tables[location.table_id]; - let components = table.get_column(component_id)?; - Some(components) + world.storages.tables[location.table_id].get_column(component_id) } #[inline]