mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
Apply suggestion
Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
parent
99d5204baa
commit
61b76f5f34
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ StorePath InputAccessor::fetchToStore(
|
||||||
{"path", path.abs()}
|
{"path", path.abs()}
|
||||||
};
|
};
|
||||||
if (auto res = fetchers::getCache()->lookup(*cacheKey)) {
|
if (auto res = fetchers::getCache()->lookup(*cacheKey)) {
|
||||||
StorePath storePath(fetchers::getStrAttr(*res, "storePath"));
|
StorePath storePath{fetchers::getStrAttr(*res, "storePath")};
|
||||||
if (store->isValidPath(storePath)) {
|
if (store->isValidPath(storePath)) {
|
||||||
debug("store path cache hit for '%s'", showPath(path));
|
debug("store path cache hit for '%s'", showPath(path));
|
||||||
return storePath;
|
return storePath;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue