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/ADCSensor.cpp b/src/ADCSensor.cpp
index a8287b4..d9456cd 100644
--- a/src/ADCSensor.cpp
+++ b/src/ADCSensor.cpp
@@ -114,27 +114,27 @@
boost::posix_time::milliseconds(bridgeGpio->setupTimeMs));
waitTimer.async_wait(
[weakRef, buffer](const boost::system::error_code& ec) {
- std::shared_ptr<ADCSensor> self = weakRef.lock();
- if (ec == boost::asio::error::operation_aborted)
- {
- return; // we're being canceled
- }
+ std::shared_ptr<ADCSensor> self = weakRef.lock();
+ if (ec == boost::asio::error::operation_aborted)
+ {
+ return; // we're being canceled
+ }
- if (self)
- {
- boost::asio::async_read_until(
- self->inputDev, *buffer, '\n',
- [weakRef, buffer](const boost::system::error_code& ec,
- std::size_t /*bytes_transfered*/) {
- std::shared_ptr<ADCSensor> self = weakRef.lock();
- if (self)
- {
- self->readBuf = buffer;
- self->handleResponse(ec);
- }
- });
- }
- });
+ if (self)
+ {
+ boost::asio::async_read_until(
+ self->inputDev, *buffer, '\n',
+ [weakRef, buffer](const boost::system::error_code& ec,
+ std::size_t /*bytes_transfered*/) {
+ std::shared_ptr<ADCSensor> self = weakRef.lock();
+ if (self)
+ {
+ self->readBuf = buffer;
+ self->handleResponse(ec);
+ }
+ });
+ }
+ });
}
else
{
@@ -142,12 +142,12 @@
inputDev, *buffer, '\n',
[weakRef, buffer](const boost::system::error_code& ec,
std::size_t /*bytes_transfered*/) {
- std::shared_ptr<ADCSensor> self = weakRef.lock();
- if (self)
- {
- self->readBuf = buffer;
- self->handleResponse(ec);
- }
+ std::shared_ptr<ADCSensor> self = weakRef.lock();
+ if (self)
+ {
+ self->readBuf = buffer;
+ self->handleResponse(ec);
+ }
});
}
}