mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Use std::nullopt
This commit is contained in:
parent
3c54e9ba01
commit
ebfbfe9515
1 changed files with 1 additions and 1 deletions
|
@ -645,7 +645,7 @@ struct CmdFlakeArchive : FlakeCommand, MixJSON, MixDryRun
|
||||||
{
|
{
|
||||||
auto flake = lockFlake();
|
auto flake = lockFlake();
|
||||||
|
|
||||||
auto jsonRoot = json ? std::optional<JSONObject>(std::cout) : std::optional<JSONObject>();
|
auto jsonRoot = json ? std::optional<JSONObject>(std::cout) : std::nullopt;
|
||||||
|
|
||||||
StorePathSet sources;
|
StorePathSet sources;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue