about summary refs log tree commit diff
path: root/third_party/nix/src/libmain/common-args.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/libmain/common-args.cc')
-rw-r--r--third_party/nix/src/libmain/common-args.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/nix/src/libmain/common-args.cc b/third_party/nix/src/libmain/common-args.cc
index 9863eda63bf1..9d6f6445c0e7 100644
--- a/third_party/nix/src/libmain/common-args.cc
+++ b/third_party/nix/src/libmain/common-args.cc
@@ -32,7 +32,9 @@ MixCommonArgs::MixCommonArgs(const string& programName)
   globalConfig.convertToArgs(*this, cat);
 
   // Backward compatibility hack: nix-env already had a --system flag.
-  if (programName == "nix-env") longFlags.erase("system");
+  if (programName == "nix-env") {
+    longFlags.erase("system");
+  }
 
   hiddenCategories.insert(cat);
 }