clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I0d10afa582342818b9d90b168f6f39f71ce4e0f4
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
[AJ: regenerate using .clang-format from openbmc/docs@f44abd66eca8]
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/src/Utils.hpp b/src/Utils.hpp
index 444030c..0373563 100644
--- a/src/Utils.hpp
+++ b/src/Utils.hpp
@@ -180,7 +180,6 @@
inline void setReadState(const std::string& str, PowerState& val)
{
-
if (str == "On")
{
val = PowerState::on;
@@ -205,8 +204,8 @@
auto findPowerState = cfg.find("PowerState");
if (findPowerState != cfg.end())
{
- std::string powerState =
- std::visit(VariantToStringVisitor(), findPowerState->second);
+ std::string powerState = std::visit(VariantToStringVisitor(),
+ findPowerState->second);
setReadState(powerState, state);
}
return state;