Implement bugprone-branch-clone compliance
As part of getting the clang-tidy bugprone tests running, these
conditionals were found to have duplicate entries, or be somewhat
nonsensical.
Tested: clang-tidy now passes with the branch-compliance check set.
Change-Id: Ibec106f3bbd866fc471a1fc56bd8cdd5d44024e0
diff --git a/include/authorization.hpp b/include/authorization.hpp
index 1fd1b12..524064e 100644
--- a/include/authorization.hpp
+++ b/include/authorization.hpp
@@ -212,8 +212,8 @@
{
return true;
}
- else if (crow::webroutes::routes.find(std::string(req.url)) !=
- crow::webroutes::routes.end())
+ if (crow::webroutes::routes.find(std::string(req.url)) !=
+ crow::webroutes::routes.end())
{
return true;
}