aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/misc.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-02-01 10:07:54 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-02-01 10:07:54 -0500
commitdb759b1bc23c64b2aa6bdd0c5444a6d864488671 (patch)
treeeb16d94ba62cdcaaaa90398b0696f783c8817aab /src/libstore/misc.cc
parent0983a0bd3050d02659f7c58555b8cbcfffed2c3b (diff)
Undo style change
`&` without space before is far more common on this codebase than I thought, so it is not worth changing just this one file. Maybe we will adopt a formatter someday but until then this is fine.
Diffstat (limited to 'src/libstore/misc.cc')
-rw-r--r--src/libstore/misc.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstore/misc.cc b/src/libstore/misc.cc
index 1c187535d..b28768459 100644
--- a/src/libstore/misc.cc
+++ b/src/libstore/misc.cc
@@ -21,16 +21,16 @@ void Store::computeFSClosure(const StorePathSet & startPaths,
StorePathSet res;
StorePathSet referrers;
queryReferrers(path, referrers);
- for (auto & ref : referrers)
+ for (auto& ref : referrers)
if (ref != path)
res.insert(ref);
if (includeOutputs)
- for (auto & i : queryValidDerivers(path))
+ for (auto& i : queryValidDerivers(path))
res.insert(i);
if (includeDerivers && path.isDerivation())
- for (auto & [_, maybeOutPath] : queryPartialDerivationOutputMap(path))
+ for (auto& [_, maybeOutPath] : queryPartialDerivationOutputMap(path))
if (maybeOutPath && isValidPath(*maybeOutPath))
res.insert(*maybeOutPath);
return res;
@@ -40,12 +40,12 @@ void Store::computeFSClosure(const StorePathSet & startPaths,
std::future<ref<const ValidPathInfo>> & fut) {
StorePathSet res;
auto info = fut.get();
- for (auto & ref : info->references)
+ for (auto& ref : info->references)
if (ref != path)
res.insert(ref);
if (includeOutputs && path.isDerivation())
- for (auto & [_, maybeOutPath] : queryPartialDerivationOutputMap(path))
+ for (auto& [_, maybeOutPath] : queryPartialDerivationOutputMap(path))
if (maybeOutPath && isValidPath(*maybeOutPath))
res.insert(*maybeOutPath);