mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
Organize and format code a bit
This commit is contained in:
parent
45b6fdb22b
commit
1dfcbebc95
2 changed files with 17 additions and 16 deletions
|
@ -362,14 +362,14 @@ bool Store::PathInfoCacheValue::isKnownNow()
|
|||
}
|
||||
|
||||
OutputPathMap Store::queryDerivationOutputMapAssumeTotal(const StorePath & path) {
|
||||
auto resp = queryDerivationOutputMap(path);
|
||||
OutputPathMap result;
|
||||
for (auto & [outName, optOutPath] : resp) {
|
||||
if (!optOutPath)
|
||||
throw Error("output '%s' has no store path mapped to it", outName);
|
||||
result.insert_or_assign(outName, *optOutPath);
|
||||
}
|
||||
return result;
|
||||
auto resp = queryDerivationOutputMap(path);
|
||||
OutputPathMap result;
|
||||
for (auto & [outName, optOutPath] : resp) {
|
||||
if (!optOutPath)
|
||||
throw Error("output '%s' has no store path mapped to it", outName);
|
||||
result.insert_or_assign(outName, *optOutPath);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
StorePathSet Store::queryDerivationOutputs(const StorePath & path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue