mirror of
https://github.com/NixOS/nix
synced 2024-09-19 23:03:53 -04:00
PackageInfo::queryDrvPath(): Don't dereference an empty optional
Fixes a regression introduced inf923ed6b6a
. https://hydra.nixos.org/build/262267313 (cherry picked from commitd2eeabf3e6
)
This commit is contained in:
parent
bd8ec66189
commit
4d788bda18
|
@ -82,8 +82,7 @@ std::optional<StorePath> PackageInfo::queryDrvPath() const
|
|||
} else
|
||||
drvPath = {std::nullopt};
|
||||
}
|
||||
drvPath.value_or(std::nullopt);
|
||||
return *drvPath;
|
||||
return drvPath.value_or(std::nullopt);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue