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/src/NVMeSensorMain.cpp b/src/NVMeSensorMain.cpp
index d5e3026..ed46923 100644
--- a/src/NVMeSensorMain.cpp
+++ b/src/NVMeSensorMain.cpp
@@ -237,24 +237,24 @@
std::function<void(sdbusplus::message::message&)> eventHandler =
[&filterTimer, &io, &objectServer,
&systemBus](sdbusplus::message::message&) {
- // this implicitly cancels the timer
- filterTimer.expires_from_now(boost::posix_time::seconds(1));
+ // this implicitly cancels the timer
+ filterTimer.expires_from_now(boost::posix_time::seconds(1));
- filterTimer.async_wait([&](const boost::system::error_code& ec) {
- if (ec == boost::asio::error::operation_aborted)
- {
- return; // we're being canceled
- }
+ filterTimer.async_wait([&](const boost::system::error_code& ec) {
+ if (ec == boost::asio::error::operation_aborted)
+ {
+ return; // we're being canceled
+ }
- if (ec)
- {
- std::cerr << "Error: " << ec.message() << "\n";
- return;
- }
+ if (ec)
+ {
+ std::cerr << "Error: " << ec.message() << "\n";
+ return;
+ }
- createSensors(io, objectServer, systemBus);
- });
- };
+ createSensors(io, objectServer, systemBus);
+ });
+ };
sdbusplus::bus::match::match configMatch(
static_cast<sdbusplus::bus::bus&>(*systemBus),
@@ -270,7 +270,7 @@
"type='signal',member='InterfacesRemoved',arg0path='" +
std::string(inventoryPath) + "/'",
[](sdbusplus::message::message& msg) {
- interfaceRemoved(msg, nvmeDeviceMap);
+ interfaceRemoved(msg, nvmeDeviceMap);
});
setupManufacturingModeMatch(*systemBus);