aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers/fetchers.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-07-21 13:46:53 +0200
committerGitHub <noreply@github.com>2023-07-21 13:46:53 +0200
commit7ac24d952545637b6af2d60852bdd2750621b504 (patch)
tree01decd818267cfd79c9fe63e594ed3a62336c0d6 /src/libfetchers/fetchers.cc
parent85d0eb63165e7d7f441fe3dd94bb548a40502e52 (diff)
parent903700c5e168e2ab5bd6bee5e09b5908cb2908d6 (diff)
Merge pull request #8650 from obsidiansystems/content-address-simpler
Simplify `ContentAddress`
Diffstat (limited to 'src/libfetchers/fetchers.cc')
-rw-r--r--src/libfetchers/fetchers.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libfetchers/fetchers.cc b/src/libfetchers/fetchers.cc
index 2860c1ceb..f86c0604e 100644
--- a/src/libfetchers/fetchers.cc
+++ b/src/libfetchers/fetchers.cc
@@ -217,10 +217,8 @@ StorePath Input::computeStorePath(Store & store) const
if (!narHash)
throw Error("cannot compute store path for unlocked input '%s'", to_string());
return store.makeFixedOutputPath(getName(), FixedOutputInfo {
- .hash = {
- .method = FileIngestionMethod::Recursive,
- .hash = *narHash,
- },
+ .method = FileIngestionMethod::Recursive,
+ .hash = *narHash,
.references = {},
});
}