mirror of
https://github.com/NixOS/nix.git
synced 2025-11-10 20:46:01 +01:00
Fix warning 'catching polymorphic type by value'
This commit is contained in:
parent
3420b60b39
commit
5c95b32c46
2 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ void CreateDerivationAndRealiseGoal::getDerivation()
|
|||
auto drvPath = StorePath::dummy;
|
||||
try {
|
||||
drvPath = resolveDerivedPath(worker.store, *drvReq);
|
||||
} catch (MissingRealisation) {
|
||||
} catch (MissingRealisation &) {
|
||||
return std::nullopt;
|
||||
}
|
||||
return worker.evalStore.isValidPath(drvPath) || worker.store.isValidPath(drvPath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue