Skip to content

Commit

Permalink
PackageInfo::queryDrvPath(): Don't dereference an empty optional
Browse files Browse the repository at this point in the history
Fixes a regression introduced in f923ed6.

https://hydra.nixos.org/build/262267313
  • Loading branch information
edolstra committed Jun 5, 2024
1 parent 49c6f34 commit d2eeabf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libexpr/get-drvs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit d2eeabf

Please sign in to comment.