diff --git a/src/libfetchers/path.cc b/src/libfetchers/path.cc index 7f48ce07bb9..de2652ef72e 100644 --- a/src/libfetchers/path.cc +++ b/src/libfetchers/path.cc @@ -165,7 +165,6 @@ struct PathInputScheme : InputScheme // To prevent `fetchToStore()` copying the path again to Nix // store, pre-create an entry in the fetcher cache. - auto info = store.queryPathInfo(*storePath); accessor->fingerprint = fmt("path:%s", store.queryPathInfo(*storePath)->narHash.to_string(HashFormat::SRI, true)); settings.getCache()->upsert(