fix clang-tidy warnings with unreachable returns
```
/data0/jenkins/workspace/ci-repository/openbmc/bmcweb/http/verb.hpp:51:12: error: 'return' will never be executed [clang-diagnostic-unreachable-code-return,-warnings-as-errors]
/data0/jenkins/workspace/ci-repository/openbmc/bmcweb/http/utility.hpp:99:12: error: 'return' will never be executed [clang-diagnostic-unreachable-code-return,-warnings-as-errors]
/data0/jenkins/workspace/ci-repository/openbmc/bmcweb/redfish-core/include/utils/query_param.hpp:272:13: error: 'break' will never be executed [clang-diagnostic-unreachable-code-break,-warnings-as-errors]
```
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia74f4fb4f34875097d1ef04b26e40908cc175088
diff --git a/http/utility.hpp b/http/utility.hpp
index 7a85519..6717327 100644
--- a/http/utility.hpp
+++ b/http/utility.hpp
@@ -96,7 +96,6 @@
a /= toUnderlying(TypeCode::Max);
b /= toUnderlying(TypeCode::Max);
}
- return false;
}
constexpr inline uint64_t getParameterTag(std::string_view url)
diff --git a/http/verb.hpp b/http/verb.hpp
index 4213604..5eacfbe 100644
--- a/http/verb.hpp
+++ b/http/verb.hpp
@@ -47,8 +47,6 @@
default:
return std::nullopt;
}
-
- return std::nullopt;
}
inline std::string_view httpVerbToString(HttpVerb verb)
diff --git a/redfish-core/include/utils/query_param.hpp b/redfish-core/include/utils/query_param.hpp
index d375202..71fcbd7 100644
--- a/redfish-core/include/utils/query_param.hpp
+++ b/redfish-core/include/utils/query_param.hpp
@@ -268,8 +268,6 @@
break;
default:
return false;
-
- break;
}
value.remove_prefix(1);
if (value.empty())