clang-format: copy latest and re-format
clang-format-17 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: I3e9e6350864ac267819a4b8d670bef7d3746976e
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/monitor/system.cpp b/monitor/system.cpp
index bb2e95e..5c2ed4e 100644
--- a/monitor/system.cpp
+++ b/monitor/system.cpp
@@ -378,8 +378,8 @@
// If no fan has its sensors on D-Bus, then there is a problem
// with the fan controller. Log an error and shut down.
if (std::all_of(_fans.begin(), _fans.end(), [](const auto& fan) {
- return fan->numSensorsOnDBusAtPowerOn() == 0;
- }))
+ return fan->numSensorsOnDBusAtPowerOn() == 0;
+ }))
{
#if DELAY_HOST_CONTROL > 0
sleep(DELAY_HOST_CONTROL);
@@ -388,8 +388,8 @@
fan->powerStateChanged(powerStateOn);
});
if (std::all_of(_fans.begin(), _fans.end(), [](const auto& fan) {
- return fan->numSensorsOnDBusAtPowerOn() == 0;
- }))
+ return fan->numSensorsOnDBusAtPowerOn() == 0;
+ }))
{
handleOfflineFanController();
return;