diff options
author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2019-06-28 21:24:03 +0300 |
---|---|---|
committer | Jason M. Bills <jason.m.bills@linux.intel.com> | 2019-06-28 21:26:34 +0300 |
commit | c074230b45ef902f203e8931e6f058d7e030240e (patch) | |
tree | ea9703fe0c5f1d1ed4c665c1db7b389835f4fc85 /redfish-core/src/error_messages.cpp | |
parent | 85e1424f5466ebedb4a28b233355551e94260677 (diff) | |
download | bmcweb-c074230b45ef902f203e8931e6f058d7e030240e.tar.xz |
Fix variable name case style for CI warning
CI gives a warning for invalid case style in variable names. This
fixes the warnings that show up so far.
Change-Id: I2a8706d3283bdc685dc026391de715accea7b86e
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'redfish-core/src/error_messages.cpp')
-rw-r--r-- | redfish-core/src/error_messages.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/redfish-core/src/error_messages.cpp b/redfish-core/src/error_messages.cpp index 5b10937609..51871bf01a 100644 --- a/redfish-core/src/error_messages.cpp +++ b/redfish-core/src/error_messages.cpp @@ -32,16 +32,16 @@ static void addMessageToErrorJson(nlohmann::json& target, // first error message to the top level struct if (!error.is_object()) { - auto message_id_iterator = message.find("MessageId"); - if (message_id_iterator == message.end()) + auto messageIdIterator = message.find("MessageId"); + if (messageIdIterator == message.end()) { BMCWEB_LOG_CRITICAL << "Attempt to add error message without MessageId"; return; } - auto message_field_iterator = message.find("Message"); - if (message_field_iterator == message.end()) + auto messageFieldIterator = message.find("Message"); + if (messageFieldIterator == message.end()) { BMCWEB_LOG_CRITICAL << "Attempt to add error message without Message"; @@ -49,8 +49,8 @@ static void addMessageToErrorJson(nlohmann::json& target, } // clang-format off error = { - {"code", *message_id_iterator}, - {"message", *message_field_iterator} + {"code", *messageIdIterator}, + {"message", *messageFieldIterator} }; // clang-format on } @@ -65,13 +65,13 @@ static void addMessageToErrorJson(nlohmann::json& target, // This check could technically be done in in the default construction // branch above, but because we need the pointer to the extended info field // anyway, it's more efficient to do it here. - auto& extended_info = error[messages::messageAnnotation]; - if (!extended_info.is_array()) + auto& extendedInfo = error[messages::messageAnnotation]; + if (!extendedInfo.is_array()) { - extended_info = nlohmann::json::array(); + extendedInfo = nlohmann::json::array(); } - extended_info.push_back(message); + extendedInfo.push_back(message); } static void addMessageToJsonRoot(nlohmann::json& target, |