mirror of
https://github.com/NixOS/nix.git
synced 2025-12-03 15:40:59 +01:00
Get rid of verifyAllValidPaths boolean blindness
This commit is contained in:
parent
c30b5d8a0b
commit
b21ee60594
4 changed files with 33 additions and 9 deletions
|
|
@ -252,7 +252,7 @@ void LocalOverlayStore::optimiseStore()
|
|||
}
|
||||
|
||||
|
||||
std::pair<bool, StorePathSet> LocalOverlayStore::verifyAllValidPaths(RepairFlag repair)
|
||||
LocalStore::VerificationResult LocalOverlayStore::verifyAllValidPaths(RepairFlag repair)
|
||||
{
|
||||
StorePathSet done;
|
||||
|
||||
|
|
@ -266,7 +266,10 @@ std::pair<bool, StorePathSet> LocalOverlayStore::verifyAllValidPaths(RepairFlag
|
|||
for (auto & i : queryAllValidPaths())
|
||||
verifyPath(i, existsInStoreDir, done, validPaths, repair, errors);
|
||||
|
||||
return { errors, validPaths };
|
||||
return {
|
||||
.errors = errors,
|
||||
.validPaths = validPaths,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue