Skip to content

Commit

Permalink
Fixing Uncrustify and cpplint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bartek-kc committed Nov 9, 2022
1 parent 1bf6a5d commit 166909b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion topic_tools/src/tool_base_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ void ToolBaseNode::make_subscribe_unsubscribe_decisions()
{
if (auto source_info = try_discover_source()) {
// always relay same topic type and QoS profile as the first available source
if (!topic_type_ || !qos_profile_ || *topic_type_ != source_info->first || *qos_profile_ != source_info->second || !pub_) {
if (!topic_type_ || !qos_profile_ || *topic_type_ != source_info->first ||
*qos_profile_ != source_info->second || !pub_)
{
topic_type_ = source_info->first;
qos_profile_ = source_info->second;
pub_ = this->create_generic_publisher(output_topic_, *topic_type_, *qos_profile_);
Expand Down

0 comments on commit 166909b

Please sign in to comment.