Update clang-format
remove empty lines
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ie3e6f356828987a4be5013def90d96b644502821
diff --git a/.clang-format b/.clang-format
index ddfe2d7..79a474d 100644
--- a/.clang-format
+++ b/.clang-format
@@ -77,7 +77,7 @@
IndentCaseLabels: true
IndentWidth: 4
IndentWrappedFunctionNames: true
-KeepEmptyLinesAtTheStartOfBlocks: true
+KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
diff --git a/manager/json-parser.hpp b/manager/json-parser.hpp
index e8819ef..28ffe4d 100644
--- a/manager/json-parser.hpp
+++ b/manager/json-parser.hpp
@@ -29,7 +29,6 @@
*/
Json readJson(const fs::path& path)
{
-
if (!fs::exists(path) || fs::is_empty(path))
{
lg2::error("Incorrect File Path or empty file, FILE_PATH = {PATH}",
@@ -77,7 +76,6 @@
const phosphor::led::Layout::Action& priority,
PriorityMap& priorityMap)
{
-
auto iter = priorityMap.find(name);
if (iter == priorityMap.end())
{
diff --git a/manager/serialize.cpp b/manager/serialize.cpp
index 5982093..64bcadf 100644
--- a/manager/serialize.cpp
+++ b/manager/serialize.cpp
@@ -55,7 +55,6 @@
void Serialize::restoreGroups()
{
-
if (!fs::exists(path))
{
lg2::info("File does not exist, FILE_PATH = {PATH}", "PATH", path);
diff --git a/utils.cpp b/utils.cpp
index e538d20..1176d9a 100644
--- a/utils.cpp
+++ b/utils.cpp
@@ -13,7 +13,6 @@
const std::string DBusHandler::getService(const std::string& path,
const std::string& interface) const
{
-
using InterfaceList = std::vector<std::string>;
std::unordered_map<std::string, std::vector<std::string>> mapperResponse;