clang-tidy readability

This commit is contained in:
Daniel Agar
2017-01-29 21:52:53 -05:00
parent b33d49c77d
commit 070cd55636
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ int uORB::Manager::orb_exists(const struct orb_metadata *meta, int instance)
#else
ret = px4_access(path, F_OK);
if (ret == -1 && meta != nullptr && _remote_topics.size() > 0) {
if (ret == -1 && meta != nullptr && !_remote_topics.empty()) {
ret = (_remote_topics.find(meta->o_name) != _remote_topics.end()) ? OK : ERROR;
}