Apply suggestion

Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
Eelco Dolstra 2023-11-22 11:26:12 +01:00 committed by GitHub
parent 99d5204baa
commit 61b76f5f34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ StorePath InputAccessor::fetchToStore(
{"path", path.abs()}
};
if (auto res = fetchers::getCache()->lookup(*cacheKey)) {
StorePath storePath(fetchers::getStrAttr(*res, "storePath"));
StorePath storePath{fetchers::getStrAttr(*res, "storePath")};
if (store->isValidPath(storePath)) {
debug("store path cache hit for '%s'", showPath(path));
return storePath;