Apply LambdaBodyIndentation to dbus-sensors
Per the transform being done in bmcweb, do the same for dbus-sensors.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: If21489607759f3cdf20fad17eede50fb4e228e5e
diff --git a/include/sensor.hpp b/include/sensor.hpp
index 23d5a76..404b261 100644
--- a/include/sensor.hpp
+++ b/include/sensor.hpp
@@ -288,21 +288,21 @@
iface->register_property(
level, threshold.value,
[&, label, thresSize](const double& request, double& oldValue) {
- oldValue = request; // todo, just let the config do this?
- threshold.value = request;
- thresholds::persistThreshold(configurationPath, objectType,
- threshold, dbusConnection,
- thresSize, label);
- // Invalidate previously remembered value,
- // so new thresholds will be checked during next update,
- // even if sensor reading remains unchanged.
- value = std::numeric_limits<double>::quiet_NaN();
+ oldValue = request; // todo, just let the config do this?
+ threshold.value = request;
+ thresholds::persistThreshold(configurationPath, objectType,
+ threshold, dbusConnection,
+ thresSize, label);
+ // Invalidate previously remembered value,
+ // so new thresholds will be checked during next update,
+ // even if sensor reading remains unchanged.
+ value = std::numeric_limits<double>::quiet_NaN();
- // Although tempting, don't call checkThresholds() from here
- // directly. Let the regular sensor monitor call the same
- // using updateValue(), which can check conditions like
- // poweron, etc., before raising any event.
- return 1;
+ // Although tempting, don't call checkThresholds() from here
+ // directly. Let the regular sensor monitor call the same
+ // using updateValue(), which can check conditions like
+ // poweron, etc., before raising any event.
+ return 1;
});
iface->register_property(alarm, false);
}