Skip to content

Commit

Permalink
fix(perception_online_evaluator): fix bugprone-branch-clone (autoware…
Browse files Browse the repository at this point in the history
…foundation#9631)

fix: bugprone-branch-clone

Signed-off-by: kobayu858 <[email protected]>
  • Loading branch information
kobayu858 authored Dec 12, 2024
1 parent 413805a commit e8ea100
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,9 @@ void DetectionCounter::initializeDetectionMap()
++i) {
for (const auto & range : getRanges()) {
std::string range_str = range.toString();
if (time_series_counts_.find(i) == time_series_counts_.end()) {
time_series_counts_[i][range_str] = std::vector<rclcpp::Time>();
seen_uuids_[i][range_str] = std::set<std::string>();
} else if (time_series_counts_[i].find(range_str) == time_series_counts_[i].end()) {
if (
time_series_counts_[i].find(range_str) == time_series_counts_[i].end() ||
time_series_counts_.find(i) == time_series_counts_.end()) {
time_series_counts_[i][range_str] = std::vector<rclcpp::Time>();
seen_uuids_[i][range_str] = std::set<std::string>();
}
Expand Down

0 comments on commit e8ea100

Please sign in to comment.