Skip to content

Commit

Permalink
Fixup botched GH suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Dec 23, 2024
1 parent 31af881 commit 8994c09
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/tiles/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ impl TileStorage {
///
/// Checks that the given `tile_pos` lies within the extents of the underlying map.
pub fn checked_remove(&mut self, tile_pos: &TilePos) -> Option<Entity> {
if tile_pos.within_map_bounds(&self.size) {
self.tiles.get_mut(tile_pos.to_index(&self.size))?.take()
}

Expand Down

0 comments on commit 8994c09

Please sign in to comment.