about summary refs log tree commit diff
path: root/third_party/nix/src/nix/legacy.hh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/nix/legacy.hh')
-rw-r--r--third_party/nix/src/nix/legacy.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/nix/src/nix/legacy.hh b/third_party/nix/src/nix/legacy.hh
index 09a1022181..a9bc65c02e 100644
--- a/third_party/nix/src/nix/legacy.hh
+++ b/third_party/nix/src/nix/legacy.hh
@@ -13,7 +13,9 @@ struct RegisterLegacyCommand {
   static Commands* commands;
 
   RegisterLegacyCommand(const std::string& name, MainFunction fun) {
-    if (!commands) commands = new Commands;
+    if (!commands) {
+      commands = new Commands;
+    }
     (*commands)[name] = fun;
   }
 };