Skip to content

Commit c603483

Browse files
committed
Simplify fetch_table
1 parent d9c3389 commit c603483

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/bevy_ecs/src/world/entity_ref.rs

Lines changed: 1 addition & 3 deletions
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)