Skip to content

Commit

Permalink
Fixed issue that invalid prerequisites are not reflected to the resul…
Browse files Browse the repository at this point in the history
…ts (#169)

Signed-off-by: TaikiYamada4 <[email protected]>
  • Loading branch information
TaikiYamada4 authored Dec 5, 2024
1 parent 7ad77ad commit 9dd97a3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,14 @@ 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 =
prerequisite_issues.empty()
? apply_validation(
lanelet_map, replace_validator(
validator_config.command_line_config.validationConfig, validator_name))
: std::vector<lanelet::validation::DetectedIssues>();
: std::move(prerequisite_issues);

// Add validation results to the json data
json & validator_json = find_validator_block(json_data, validator_name);
Expand Down

0 comments on commit 9dd97a3

Please sign in to comment.