diff options
Diffstat (limited to 'redfish-core/include/utils/json_utils.hpp')
-rw-r--r-- | redfish-core/include/utils/json_utils.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/include/utils/json_utils.hpp b/redfish-core/include/utils/json_utils.hpp index 9aac1dcaf9..b6885764cd 100644 --- a/redfish-core/include/utils/json_utils.hpp +++ b/redfish-core/include/utils/json_utils.hpp @@ -430,7 +430,7 @@ inline bool readJsonHelper(nlohmann::json& jsonRequest, crow::Response& res, result = details::unpackValue<nlohmann::json>(item.value(), key, res, j) && result; - if (result == false) + if (!result) { return result; } @@ -475,7 +475,7 @@ inline bool readJsonHelper(nlohmann::json& jsonRequest, crow::Response& res, for (PerUnpack& perUnpack : toUnpack) { - if (perUnpack.complete == false) + if (!perUnpack.complete) { bool isOptional = std::visit( [](auto&& val) { |