aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r--src/libstore/store-api.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index 4c68709ef..e894d2b85 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -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)