Skip to content

Commit

Permalink
Update src/libstore/local-store.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Théophane Hufschmitt <[email protected]>
  • Loading branch information
Ericson2314 and thufschmitt authored Jan 25, 2024
1 parent cbf479e commit 31a1cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstore/local-store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ LocalStore::LocalStore(
std::optional<PathView> path,
const Params & _params)
: LocalStore([&]{
// ?root=... overrides path
// Default `?root` from `path` if non set
if (path && _params.count("root") == 0) {
auto params = _params;
params.insert_or_assign("root", std::string { *path });
Expand Down

0 comments on commit 31a1cce

Please sign in to comment.