aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorJonas Chevalier <zimbatm@zimbatm.com>2024-09-30 16:10:32 +0000
committerGerrit Code Review <gerrit@localhost>2024-09-30 16:10:32 +0000
commita16ceb9411c57993d811c6bebb517742fe3d34e3 (patch)
treea3570018ce062afe1684702308d3359f48759a85 /src/nix
parentaa33c34c9be074c9452976aa96d71091325c83ea (diff)
parent2265536e853437dc1f36f9c7a20eb2ebeac6ecaa (diff)
Merge "fix(nix fmt): remove the default "." argument" into main
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/fmt.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/nix/fmt.cc b/src/nix/fmt.cc
index 059904150..f47f2204a 100644
--- a/src/nix/fmt.cc
+++ b/src/nix/fmt.cc
@@ -39,14 +39,8 @@ struct CmdFmt : SourceExprCommand {
Strings programArgs{app.program};
// Propagate arguments from the CLI
- if (args.empty()) {
- // Format the current flake out of the box
- programArgs.push_back(".");
- } else {
- // User wants more power, let them decide which paths to include/exclude
- for (auto &i : args) {
- programArgs.push_back(i);
- }
+ for (auto &i : args) {
+ programArgs.push_back(i);
}
runProgramInStore(store, UseSearchPath::DontUse, app.program, programArgs);