[libcalamares] Code-formatting Sync.*
This commit is contained in:
parent
e59b3e8bf5
commit
e6b55a1f70
@ -21,7 +21,8 @@
|
|||||||
#include "utils/CalamaresUtilsSystem.h"
|
#include "utils/CalamaresUtilsSystem.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
void CalamaresUtils::Partition::sync()
|
void
|
||||||
|
CalamaresUtils::Partition::sync()
|
||||||
{
|
{
|
||||||
auto r = CalamaresUtils::System::runCommand( { "/sbin/udevadm", "settle" }, 10 );
|
auto r = CalamaresUtils::System::runCommand( { "/sbin/udevadm", "settle" }, 10 );
|
||||||
|
|
||||||
|
@ -37,13 +37,10 @@ void sync();
|
|||||||
/** @brief RAII class for calling sync() */
|
/** @brief RAII class for calling sync() */
|
||||||
struct Syncer
|
struct Syncer
|
||||||
{
|
{
|
||||||
~Syncer()
|
~Syncer() { sync(); }
|
||||||
{
|
|
||||||
sync();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
} // namespace Partition
|
||||||
}
|
} // namespace CalamaresUtils
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user