mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 23:12:44 +01:00
Replace 'bool sync' with an enum for clarity
And drop writeFileAndSync().
This commit is contained in:
parent
479c356510
commit
a4b5584fb1
4 changed files with 21 additions and 36 deletions
|
|
@ -93,7 +93,7 @@ void restorePath(
|
|||
{
|
||||
switch (method) {
|
||||
case FileSerialisationMethod::Flat:
|
||||
writeFile(path, source, 0666, startFsync);
|
||||
writeFile(path, source, 0666, startFsync ? FsSync::Yes : FsSync::No);
|
||||
break;
|
||||
case FileSerialisationMethod::NixArchive:
|
||||
restorePath(path, source, startFsync);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue