Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
k88hudson-cfa committed Nov 30, 2024
1 parent 762af45 commit d293dc9
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/people.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1125,13 +1125,10 @@ impl ContextPeopleExt for Context {

// First, update indexes
{
let mut index_container = self.get_data_container(PeoplePlugin)
.expect("PeoplePlugin is not initialized; make sure you add a person before accessing properties")
.property_indexes
.borrow_mut();

for (typeid, index) in index_container.iter_mut() {
if type_ids.contains(typeid) {
let data_container = self.get_data_container(PeoplePlugin)
.expect("PeoplePlugin is not initialized; make sure you add a person before accessing properties");
for t in &type_ids {
if let Some(mut index) = data_container.get_index_ref_mut(*t) {
index.index_unindexed_people(self);
}
}
Expand Down

0 comments on commit d293dc9

Please sign in to comment.