Remove clang-format directive to fix CI failure
Remove clang-format directive to fix CI failure
otherwise, it reports:
```
...
@@ -114,13 +114,13 @@ void updateSensorInterfaces(InterfaceMap& ifaces, SensorValueType value)
{
// clang-format off
case InterfaceType::VALUE:
- {
- auto& valueIface =
- std::any_cast<std::shared_ptr<ValueObject>&>(iface.second);
- valueIface->value(value);
- }
- break;
- // clang-format on
+ {
+ auto& valueIface =
+ std::any_cast<std::shared_ptr<ValueObject>&>(iface.second);
+ valueIface->value(value);
+ }
+ break;
+ // clang-format on
case InterfaceType::WARN:
checkThresholds<WarningObject>(iface.second, value);
break;
Format: FAILED
```
Change-Id: I0190d21e791c6b6ff64ea3364545393f4b4fe2b4
Signed-off-by: John Wang <wangzhiqiang02@ieisystem.com>
diff --git a/mainloop.cpp b/mainloop.cpp
index 825e053..5ae0f16 100644
--- a/mainloop.cpp
+++ b/mainloop.cpp
@@ -112,7 +112,6 @@
{
switch (iface.first)
{
- // clang-format off
case InterfaceType::VALUE:
{
auto& valueIface =
@@ -120,7 +119,6 @@
valueIface->value(value);
}
break;
- // clang-format on
case InterfaceType::WARN:
checkThresholds<WarningObject>(iface.second, value);
break;