about summary refs log tree commit diff
path: root/third_party/nix/src/libmain/shared.hh
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-19T17·01+0100
committerVincent Ambo <tazjin@google.com>2020-05-19T17·01+0100
commit09cbc431cca08be891e5e792ceda2a34956b2fc8 (patch)
tree3653448c7e074bdfd10dfa3bc3b5dfe952299fdf /third_party/nix/src/libmain/shared.hh
parentb490742a511dd03afc43f5143d6d61edaeeb8091 (diff)
fix(3p/nix): Fix incorrectly braced conditionals and loops r/768
Fixes mistakes introduced by clang-tidy in the previous commit.
Diffstat (limited to 'third_party/nix/src/libmain/shared.hh')
-rw-r--r--third_party/nix/src/libmain/shared.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/nix/src/libmain/shared.hh b/third_party/nix/src/libmain/shared.hh
index 337c38413da7..e5f4bec6482e 100644
--- a/third_party/nix/src/libmain/shared.hh
+++ b/third_party/nix/src/libmain/shared.hh
@@ -68,9 +68,9 @@ N getIntArg(const string& opt, Strings::iterator& i,
       } else if (u == 'T') {
         multiplier = 1ULL << 40;
       } else {
-        throw
+        throw UsageError(format("invalid unit specifier '%1%'") % u);
       }
-      UsageError(format("invalid unit specifier '%1%'") % u);
+
       s.resize(s.size() - 1);
     }
   }