presence: Clang format updates
Used `format-code.sh` build script to make changes to conform to clang
format.
Tested: Compiled
Change-Id: I2fc795938e85a752ee56b54212d389c2ff296828
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/presence/fan.cpp b/presence/fan.cpp
index 823de29..9d300c3 100644
--- a/presence/fan.cpp
+++ b/presence/fan.cpp
@@ -13,12 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-#include <map>
-#include <sdbusplus/message.hpp>
-#include <string>
#include "fan.hpp"
+
#include "sdbusplus.hpp"
+#include <sdbusplus/message.hpp>
+
+#include <map>
+#include <string>
+
namespace phosphor
{
namespace fan
@@ -40,34 +43,24 @@
using Properties = std::map<std::string, variant<std::string, bool>>;
using Interfaces = std::map<std::string, Properties>;
- std::map<object_path, Interfaces> obj =
- {{
+ std::map<object_path, Interfaces> obj = {{
std::get<1>(fan),
- {{
- itemIface,
- {
- {"Present"s, newState},
- {"PrettyName"s, std::get<0>(fan)},
- }
- },
- {
- fanIface, {}
- }},
+ {{itemIface,
+ {
+ {"Present"s, newState},
+ {"PrettyName"s, std::get<0>(fan)},
+ }},
+ {fanIface, {}}},
}};
- util::SDBusPlus::lookupAndCallMethod(
- invNamespace,
- invMgrIface,
- "Notify"s,
- obj);
+ util::SDBusPlus::lookupAndCallMethod(invNamespace, invMgrIface, "Notify"s,
+ obj);
}
bool getPresence(const Fan& fan)
{
- return util::SDBusPlus::getProperty<bool>(
- std::get<1>(fan),
- itemIface,
- "Present"s);
+ return util::SDBusPlus::getProperty<bool>(std::get<1>(fan), itemIface,
+ "Present"s);
}
} // namespace presence