Skip to content

Commit

Permalink
Simplify fetch_table
Browse files Browse the repository at this point in the history
  • Loading branch information
james7132 committed Dec 16, 2022
1 parent d9c3389 commit c603483
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/bevy_ecs/src/world/entity_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit c603483

Please sign in to comment.