Skip to content

Commit

Permalink
remove unnecessary initializations
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitsalem authored and Karsten1987 committed May 14, 2018
1 parent 96a401b commit ec44260
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rmw_fastrtps_cpp/src/rmw_service_server_is_available.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,12 @@ rmw_service_server_is_available(
auto pub_topic_name =
client_info->request_publisher_->getAttributes().topic.getTopicName();

auto pub_fqdn = pub_topic_name;
pub_fqdn = _demangle_if_ros_topic(pub_fqdn);
auto pub_fqdn = _demangle_if_ros_topic(pub_topic_name);

auto sub_topic_name =
client_info->response_subscriber_->getAttributes().topic.getTopicName();

auto sub_fqdn = sub_topic_name;
sub_fqdn = _demangle_if_ros_topic(sub_fqdn);
auto sub_fqdn = _demangle_if_ros_topic(sub_topic_name);

*is_available = false;
size_t number_of_request_subscribers = 0;
Expand Down

0 comments on commit ec44260

Please sign in to comment.