Skip to content

Commit a71bdda

Browse files
remove unnecessary get_info
1 parent 5785451 commit a71bdda

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

crates/bevy_ecs/src/world/entity_ref.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,6 @@ impl<'w> EntityMut<'w> {
664664
#[inline]
665665
pub fn get_by_id(&self, component_id: ComponentId) -> Option<Ptr<'_>> {
666666
let info = self.world.components().get_info(component_id)?;
667-
self.world.components().get_info(component_id)?;
668667
// SAFETY:
669668
// - entity_location is valid
670669
// - component_id is valid as checked by the line above

0 commit comments

Comments
 (0)