lordgamez commented on code in PR #1354:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1354#discussion_r923561863
##########
libminifi/src/core/Connectable.cpp:
##########
@@ -76,11 +72,7 @@ bool Connectable::isSupportedRelationship(const
core::Relationship &relationship
const auto conditionalLock = isConnectableRunning ?
std::unique_lock<std::mutex>() :
std::unique_lock<std::mutex>(relationship_mutex_);
const auto &it = relationships_.find(relationship.getName());
- if (it != relationships_.end()) {
- return true;
- } else {
- return false;
- }
+ return it != relationships_.end();
Review Comment:
Oop, I missed that, updated in latest commit.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]