Skip to content

Commit

Permalink
update style to match latest uncrustify (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhood authored Oct 2, 2017
1 parent e785f54 commit 570f3e1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/dynamic_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,7 @@ void update_bridge(
std::string topic_name = it.first;
if (
ros1_publishers.find(topic_name) == ros1_publishers.end() ||
(!bridge_all_1to2_topics && ros2_subscribers.find(topic_name) == ros2_subscribers.end())
)
(!bridge_all_1to2_topics && ros2_subscribers.find(topic_name) == ros2_subscribers.end()))
{
to_be_removed_1to2.push_back(topic_name);
}
Expand All @@ -287,8 +286,7 @@ void update_bridge(
std::string topic_name = it.first;
if (
(!bridge_all_2to1_topics && ros1_subscribers.find(topic_name) == ros1_subscribers.end()) ||
ros2_publishers.find(topic_name) == ros2_publishers.end()
)
ros2_publishers.find(topic_name) == ros2_publishers.end())
{
to_be_removed_2to1.push_back(topic_name);
}
Expand Down Expand Up @@ -389,8 +387,8 @@ void get_ros1_service_info(
}
ros::TransportTCPPtr transport(new ros::TransportTCP(nullptr, ros::TransportTCP::SYNCHRONOUS));
auto transport_exit = rclcpp::make_scope_exit([transport]() {
transport->close();
});
transport->close();
});
if (!transport->connect(host, port)) {
fprintf(stderr, "Failed to connect to %s:%d\n", host.data(), port);
return;
Expand Down

0 comments on commit 570f3e1

Please sign in to comment.