about summary refs log tree commit diff
path: root/third_party/nix/src/libmain/shared.hh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/libmain/shared.hh')
-rw-r--r--third_party/nix/src/libmain/shared.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/nix/src/libmain/shared.hh b/third_party/nix/src/libmain/shared.hh
index e5f4bec6482e..db236a701778 100644
--- a/third_party/nix/src/libmain/shared.hh
+++ b/third_party/nix/src/libmain/shared.hh
@@ -53,7 +53,9 @@ template <class N>
 N getIntArg(const string& opt, Strings::iterator& i,
             const Strings::iterator& end, bool allowUnit) {
   ++i;
-  if (i == end) throw UsageError(format("'%1%' requires an argument") % opt);
+  if (i == end) {
+    throw UsageError(format("'%1%' requires an argument") % opt);
+  }
   string s = *i;
   N multiplier = 1;
   if (allowUnit && !s.empty()) {