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/ChassisIntrusionSensor.cpp b/src/ChassisIntrusionSensor.cpp
index 9b35da2..d480055 100644
--- a/src/ChassisIntrusionSensor.cpp
+++ b/src/ChassisIntrusionSensor.cpp
@@ -199,24 +199,22 @@
void ChassisIntrusionSensor::pollSensorStatusByGpio(void)
{
- mGpioFd.async_wait(
- boost::asio::posix::stream_descriptor::wait_read,
- [this](const boost::system::error_code& ec) {
- if (ec == boost::system::errc::bad_file_descriptor)
- {
- return; // we're being destroyed
- }
- if (ec)
- {
- std::cerr
- << "Error on GPIO based intrusion sensor wait event\n";
- }
- else
- {
- readGpio();
- }
- pollSensorStatusByGpio();
- });
+ mGpioFd.async_wait(boost::asio::posix::stream_descriptor::wait_read,
+ [this](const boost::system::error_code& ec) {
+ if (ec == boost::system::errc::bad_file_descriptor)
+ {
+ return; // we're being destroyed
+ }
+ if (ec)
+ {
+ std::cerr << "Error on GPIO based intrusion sensor wait event\n";
+ }
+ else
+ {
+ readGpio();
+ }
+ pollSensorStatusByGpio();
+ });
}
void ChassisIntrusionSensor::initGpioDeviceFile()
@@ -315,7 +313,7 @@
mIface->register_property(
"Status", mValue,
[&](const std::string& req, std::string& propertyValue) {
- return setSensorValue(req, propertyValue);
+ return setSensorValue(req, propertyValue);
});
mIface->initialize();