aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/misc.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-10-14 10:04:13 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-10-14 10:04:13 +0200
commit09b14ea97a7883114baa5878da163d9e403396d6 (patch)
treee654c0a467e97c215dcbd4106dcd9ea80959bfe8 /src/libstore/misc.cc
parent35c98a59c5f09d8ca376ac809e87d14ff2fcbde1 (diff)
Cleanup
Diffstat (limited to 'src/libstore/misc.cc')
-rw-r--r--src/libstore/misc.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstore/misc.cc b/src/libstore/misc.cc
index f184dd857..32786e963 100644
--- a/src/libstore/misc.cc
+++ b/src/libstore/misc.cc
@@ -239,12 +239,11 @@ StorePaths Store::topoSortPaths(const StorePathSet & paths)
{
return topoSort(paths,
{[&](const StorePath & path) {
- StorePathSet references;
try {
- references = queryPathInfo(path)->references;
+ return queryPathInfo(path)->references;
} catch (InvalidPath &) {
+ return StorePathSet();
}
- return references;
}},
{[&](const StorePath & path, const StorePath & parent) {
return BuildError(