summaryrefslogtreecommitdiff
path: root/redfish-core/lib/certificate_service.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2021-09-03 00:34:57 +0300
committerEd Tanous <ed@tanous.net>2021-09-07 20:22:58 +0300
commitabb93cdd0a49be03bf2fe95f07823686b289ecd5 (patch)
treeae38aed0291ac5a06b69e2922338b58b03be6379 /redfish-core/lib/certificate_service.hpp
parent7bbcae5939c7f04aa8211af7baca24e0d00e3864 (diff)
downloadbmcweb-abb93cdd0a49be03bf2fe95f07823686b289ecd5.tar.xz
Make code pass clang-tidy-13
clang-tidy-13 appears to have improved its "use brace initialization" checker to handle more cases, and now correctly fails a couple cases that we posses. This commit simply makes the very mechanical changes to make this function. Tested: Ran previous commits checks to run ninja clang-tidy, and observed that clang-tidy now passes. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I665a7f3e71d25af93703e6b31af0f1eb12a44527
Diffstat (limited to 'redfish-core/lib/certificate_service.hpp')
-rw-r--r--redfish-core/lib/certificate_service.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/certificate_service.hpp b/redfish-core/lib/certificate_service.hpp
index f26909bb7a..a316cc5080 100644
--- a/redfish-core/lib/certificate_service.hpp
+++ b/redfish-core/lib/certificate_service.hpp
@@ -123,14 +123,14 @@ inline std::string getCertificateFromReqBody(
{
BMCWEB_LOG_ERROR << "Required parameters are missing";
messages::internalError(asyncResp->res);
- return std::string();
+ return {};
}
if (*certificateType != "PEM")
{
messages::propertyValueNotInList(asyncResp->res, *certificateType,
"CertificateType");
- return std::string();
+ return {};
}
return certificate;