Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed May 21, 2024
1 parent 2aad3e2 commit c1fc162
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions localization/ndt_scan_matcher/src/map_update_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,21 +219,19 @@ bool MapUpdateModule::update_ndt(
std::chrono::milliseconds timeout(10);
std::future_status status = result.wait_for(timeout);

if (status == std::future_status::timeout)
{
if (status == std::future_status::timeout) {
RCLCPP_WARN_STREAM_THROTTLE(logger_, *clock_, 1000, "Waited for incoming PCDs for too long!");
}

if (status != std::future_status::ready)
{
if (status != std::future_status::ready) {
diagnostics_ptr->addKeyValue("is_succeed_call_pcd_loader", false);

std::stringstream message;
message << "pcd_loader service is not working.";
diagnostics_ptr->updateLevelAndMessage(
diagnostic_msgs::msg::DiagnosticStatus::WARN, message.str());
return false;

return false;
}

diagnostics_ptr->addKeyValue("is_succeed_call_pcd_loader", true);
Expand Down

0 comments on commit c1fc162

Please sign in to comment.