diff options
author | tomberek <tomberek@users.noreply.github.com> | 2022-05-18 21:18:07 -0400 |
---|---|---|
committer | Tom Bereknyei <tomberek@gmail.com> | 2022-05-18 21:21:58 -0400 |
commit | 9f8c1183fa10aa9d95bce0ca2f3337532ad7981b (patch) | |
tree | b8f887ca33a1dea055e5336328f9e8faa0347b41 /src | |
parent | 1ca3f6035da4e82647382405c774e43e02de3fa1 (diff) |
Apply suggestions from code review
Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/nix/repl.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc index ac0f1f4d7..a1b42b760 100644 --- a/src/nix/repl.cc +++ b/src/nix/repl.cc @@ -896,11 +896,12 @@ struct CmdRepl : InstallablesCommand evalSettings.pureEval = false; } std::vector<std::string> files; - Strings getDefaultFlakeAttrPaths() - override { + Strings getDefaultFlakeAttrPaths() override + { return {""}; } - virtual bool useDefaultInstallables() { + virtual bool useDefaultInstallables() override + { return file.has_value() or expr.has_value(); } |