1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

PackageInfo::queryDrvPath(): Don't dereference an empty optional

Fixes a regression introduced in f923ed6b6a.

https://hydra.nixos.org/build/262267313
(cherry picked from commit d2eeabf3e6)
This commit is contained in:
Eelco Dolstra 2024-06-05 16:17:24 +02:00 committed by github-actions[bot]
parent bd8ec66189
commit 4d788bda18

View file

@ -82,8 +82,7 @@ std::optional<StorePath> PackageInfo::queryDrvPath() const
} else } else
drvPath = {std::nullopt}; drvPath = {std::nullopt};
} }
drvPath.value_or(std::nullopt); return drvPath.value_or(std::nullopt);
return *drvPath;
} }