From 6ad0f0571f91989c9dbe5f6f5607a7e334a0be20 Mon Sep 17 00:00:00 2001 From: TaikiYamada4 Date: Thu, 5 Dec 2024 16:31:28 +0900 Subject: [PATCH] Fixed issue that invalid prerequisites are not reflected to the results Signed-off-by: TaikiYamada4 --- map/autoware_lanelet2_map_validator/src/common/validation.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/map/autoware_lanelet2_map_validator/src/common/validation.cpp b/map/autoware_lanelet2_map_validator/src/common/validation.cpp index 71d7f4fc..f37d6e39 100644 --- a/map/autoware_lanelet2_map_validator/src/common/validation.cpp +++ b/map/autoware_lanelet2_map_validator/src/common/validation.cpp @@ -305,7 +305,6 @@ void process_requirements( // Check prerequisites are OK const auto prerequisite_issues = check_prerequisite_completion(validators, validator_name); - appendIssues(total_issues, prerequisite_issues); // NOTE: if prerequisite_issues is not empty, skip the content validation process const auto issues = @@ -313,7 +312,7 @@ void process_requirements( ? apply_validation( lanelet_map, replace_validator( validator_config.command_line_config.validationConfig, validator_name)) - : std::vector(); + : std::move(prerequisite_issues); // Add validation results to the json data json & validator_json = find_validator_block(json_data, validator_name);