mirror of
https://github.com/parchlinux/calamares.git
synced 2025-03-01 05:15:44 -05:00
[libcalamares] Code-formatting Sync.*
This commit is contained in:
parent
e59b3e8bf5
commit
e6b55a1f70
2 changed files with 5 additions and 7 deletions
|
@ -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…
Add table
Reference in a new issue