Skip to content

Commit

Permalink
Remove topic =
Browse files Browse the repository at this point in the history
Signed-off-by: Nate Koenig <nate@openrobotics.org>
  • Loading branch information
Nate Koenig committed Apr 8, 2021
1 parent 1b62324 commit f0ced9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ std::string topicFromScopedName(const Entity &_entity,
// Exclude the world name. If the entity is a world, then return an
// empty string.
topic = _ecm.Component<components::World>(_entity) ? "" :
topic = removeParentScope(removeParentScope(topic, "/"), "/");
removeParentScope(removeParentScope(topic, "/"), "/");
}

return transport::TopicUtils::AsValidTopic("/" + topic);
Expand Down

0 comments on commit f0ced9a

Please sign in to comment.