remove redundant comparison; simplify logic

This commit is contained in:
William Woodall 2015-09-04 11:31:32 -07:00
parent 6f075175d2
commit 3eb44ed6a0

View file

@ -71,12 +71,10 @@ Node::Node(
throw std::runtime_error("failed to interpret ROS_DOMAIN_ID as integral number");
}
domain_id = static_cast<size_t>(number);
}
#ifdef _WIN32
if (ros_domain_id) {
free(ros_domain_id);
}
#endif
}
auto node = rmw_create_node(name_.c_str(), domain_id);
if (!node) {