Fix clang-tidy warning (#393)

This commit is contained in:
Robert Haschke 2022-11-09 23:35:33 +01:00 committed by GitHub
parent f82c422db5
commit 2099b0cb0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -551,7 +551,7 @@ void TaskView::onExecCurrentSolution() const {
RCLCPP_ERROR(LOGGER, "send goal call failed"); RCLCPP_ERROR(LOGGER, "send goal call failed");
return; return;
} }
auto goal_handle = goal_handle_future.get(); const auto& goal_handle = goal_handle_future.get();
if (!goal_handle) if (!goal_handle)
RCLCPP_ERROR(LOGGER, "Goal was rejected by server"); RCLCPP_ERROR(LOGGER, "Goal was rejected by server");
} }