[libcalamares] Code-formatting Sync.*
This commit is contained in:
parent
e59b3e8bf5
commit
e6b55a1f70
@ -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 );
|
||||
|
||||
|
@ -37,13 +37,10 @@ void sync();
|
||||
/** @brief RAII class for calling sync() */
|
||||
struct Syncer
|
||||
{
|
||||
~Syncer()
|
||||
{
|
||||
sync();
|
||||
}
|
||||
~Syncer() { sync(); }
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace Partition
|
||||
} // namespace CalamaresUtils
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user