mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
PackageInfo::queryDrvPath(): Don't dereference an empty optional
Fixes a regression introduced in f923ed6b6a
.
https://hydra.nixos.org/build/262267313
This commit is contained in:
parent
49c6f34911
commit
d2eeabf3e6
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue