about summary refs log tree commit diff
path: root/third_party/nix/src/nix-copy-closure/nix-copy-closure.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/nix-copy-closure/nix-copy-closure.cc')
-rw-r--r--third_party/nix/src/nix-copy-closure/nix-copy-closure.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/nix/src/nix-copy-closure/nix-copy-closure.cc b/third_party/nix/src/nix-copy-closure/nix-copy-closure.cc
index 46b326a918ed..2ec6a021368b 100644
--- a/third_party/nix/src/nix-copy-closure/nix-copy-closure.cc
+++ b/third_party/nix/src/nix-copy-closure/nix-copy-closure.cc
@@ -49,7 +49,9 @@ static int _main(int argc, char** argv) {
 
     initPlugins();
 
-    if (sshHost.empty()) throw UsageError("no host name specified");
+    if (sshHost.empty()) {
+      throw UsageError("no host name specified");
+    }
 
     auto remoteUri = "ssh://" + sshHost + (gzip ? "?compress=true" : "");
     auto to = toMode ? openStore(remoteUri) : openStore();