From e6b55a1f703fb79e60dac39c727a1f6eb5e5d11f Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Thu, 20 Jun 2019 13:53:02 +0200 Subject: [PATCH] [libcalamares] Code-formatting Sync.* --- src/libcalamares/partition/Sync.cpp | 3 ++- src/libcalamares/partition/Sync.h | 9 +++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/libcalamares/partition/Sync.cpp b/src/libcalamares/partition/Sync.cpp index 9c46fed24..e9b7ae149 100644 --- a/src/libcalamares/partition/Sync.cpp +++ b/src/libcalamares/partition/Sync.cpp @@ -21,7 +21,8 @@ #include "utils/CalamaresUtilsSystem.h" #include "utils/Logger.h" -void CalamaresUtils::Partition::sync() +void +CalamaresUtils::Partition::sync() { auto r = CalamaresUtils::System::runCommand( { "/sbin/udevadm", "settle" }, 10 ); diff --git a/src/libcalamares/partition/Sync.h b/src/libcalamares/partition/Sync.h index 4de49267f..510858500 100644 --- a/src/libcalamares/partition/Sync.h +++ b/src/libcalamares/partition/Sync.h @@ -37,13 +37,10 @@ void sync(); /** @brief RAII class for calling sync() */ struct Syncer { - ~Syncer() - { - sync(); - } + ~Syncer() { sync(); } }; -} -} +} // namespace Partition +} // namespace CalamaresUtils #endif