diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-10-13 16:22:30 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-10-13 16:22:30 +0000 |
commit | 47f0d7b79833c3b5934c768fcc4b65223c8a7c4b (patch) | |
tree | 8d94ffce1dd7d4cd616159ff0393e1d5b013ca8b /src/libstore | |
parent | 9c5de066eb200d62791bfa43880ae454f8452c42 (diff) |
Cleanup tabs
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/misc.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/libstore/misc.cc b/src/libstore/misc.cc index 71fa81546..778ee4709 100644 --- a/src/libstore/misc.cc +++ b/src/libstore/misc.cc @@ -115,16 +115,16 @@ std::optional<ContentAddress> getDerivationCA(const BasicDerivation & drv) return std::nullopt; if (auto dof = std::get_if<DerivationOutputCAFixed>(&out->second.output)) { return std::visit(overloaded { - [&](TextInfo ti) -> std::optional<ContentAddress> { - if (!ti.references.empty()) - return std::nullopt; - return static_cast<TextHash>(ti); - }, - [&](FixedOutputInfo fi) -> std::optional<ContentAddress> { - if (fi.references != PathReferences<StorePath> {}) - return std::nullopt; - return static_cast<FixedOutputHash>(fi); - }, + [&](TextInfo ti) -> std::optional<ContentAddress> { + if (!ti.references.empty()) + return std::nullopt; + return static_cast<TextHash>(ti); + }, + [&](FixedOutputInfo fi) -> std::optional<ContentAddress> { + if (fi.references != PathReferences<StorePath> {}) + return std::nullopt; + return static_cast<FixedOutputHash>(fi); + }, }, dof->ca); } return std::nullopt; |