Skip to content

Commit

Permalink
remove trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
annaborn committed Feb 5, 2024
1 parent 39b729f commit e8746ce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gazebo_ros2_control/src/gazebo_ros2_control_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,9 @@ void GazeboRosControlPlugin::Load(gazebo::physics::ModelPtr parent, sdf::Element

// Read urdf from ros parameter server
std::string urdf_string;
urdf_string = impl_->getURDF(impl_->robot_description_);
if (urdf_string.empty())
{
RCLCPP_ERROR_STREAM(impl_->model_nh_->get_logger(), "An empty URDF was passed. Exiting.");
urdf_string = impl_->getURDF(impl_->robot_description_);
if (urdf_string.empty()) {
RCLCPP_ERROR_STREAM(impl_->model_nh_->get_logger(), "An empty URDF was passed. Exiting.");
return;
}

Expand Down

0 comments on commit e8746ce

Please sign in to comment.