diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-10-14 10:04:13 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-10-14 10:04:13 +0200 |
commit | 09b14ea97a7883114baa5878da163d9e403396d6 (patch) | |
tree | e654c0a467e97c215dcbd4106dcd9ea80959bfe8 | |
parent | 35c98a59c5f09d8ca376ac809e87d14ff2fcbde1 (diff) |
Cleanup
-rw-r--r-- | src/libstore/misc.cc | 5 |
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( |