Skip to content

Commit

Permalink
Apply edolstra's suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Eelco Dolstra <[email protected]>
  • Loading branch information
balsoft and edolstra authored Jul 5, 2021
1 parent 04ed3fa commit 859e612
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/libexpr/flake/flake.cc
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,7 @@ LockedFlake lockFlake(

FlakeCache flakeCache;

bool useRegistries = settings.useRegistries;

if (lockFlags.useRegistries.has_value())
useRegistries = *lockFlags.useRegistries;
auto useRegistries = lockFlags.useRegistries.value_or(settings.useRegistries);

auto flake = getFlake(state, topRef, useRegistries, flakeCache);

Expand Down

0 comments on commit 859e612

Please sign in to comment.