summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2024-04-07 00:30:49 +0300
committerEd Tanous <ed@tanous.net>2024-04-11 19:02:48 +0300
commit76b038f20fed54ff61450a175160dc0af21b3cf9 (patch)
tree43be8a26915ebe79b0ecf94806ce30b4a305786e /http
parent665e7602d5580dfe69a9686f35ef40f8f64673df (diff)
downloadbmcweb-76b038f20fed54ff61450a175160dc0af21b3cf9.tar.xz
Fix object type in json utils
This code accidentally makes a copy, given that getJsonObject returns a std::optional<nlohmann::json::object_t> which is then loaded into a std::optional<nlohmann::json>. Because nlohmann::json is implicitly constructible from an object_t, this code works and compiles, but we shouldn't need the intermediate object at all. Change the code to simply load the value as object_t. Tested: Unit tests pass. Good coverage. Change-Id: Ic57953e66958e69a1233e18a5bbd980405cac58e Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'http')
0 files changed, 0 insertions, 0 deletions