Skip to content

Commit

Permalink
Simplify (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kicer86 committed Jun 3, 2024
1 parent 5f12922 commit a4ba058
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/database/backends/memory_backend/memory_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,9 @@ namespace Database
performed = true;
}

// any people? TODO: use contains() when boost 1.78 is available on github actions
const auto& c = get<pi_ph_id_tag>(db.m_peopleInfo);
const auto c_it = c.find(ph_id);
performed = c_it != c.end();
// any people?
if (performed == false)
performed = get<pi_ph_id_tag>(db.m_peopleInfo).contains(ph_id);

return (filter.status == Database::FilterFaceAnalysisStatus::Performed && !performed) ||
(filter.status == Database::FilterFaceAnalysisStatus::NotPerformed && performed);
Expand Down

0 comments on commit a4ba058

Please sign in to comment.