Skip to content

Commit a3e7ddf

Browse files
committed
Simplify fetch_table
1 parent 6e7c9e6 commit a3e7ddf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/bevy_ecs/src/world/entity_ref.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -703,9 +703,7 @@ fn fetch_table(
703703
location: EntityLocation,
704704
component_id: ComponentId,
705705
) -> Option<&Column> {
706-
let table = &world.storages.tables[location.table_id];
707-
let components = table.get_column(component_id)?;
708-
Some(components)
706+
world.storages.tables[location.table_id].get_column(component_id)
709707
}
710708

711709
#[inline]

0 commit comments

Comments
 (0)