about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-08-20T23·51+0100
committertazjin <mail@tazj.in>2020-08-21T00·37+0000
commit375c1c2a4efee962aa0f97e4b312ffb14c12d7e9 (patch)
tree6a81b4ca6620c3a9941d2d0d6295a08bcf25d30d
parentbbacf03a3a523a1a73e9a25b6f6f6fbfef114497 (diff)
style(tvix): Move a comment to fix a formatting issue r/1694
Change-Id: Idd490b978c07d1b1113ee97b5d19719a27436fba
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1822
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
-rw-r--r--third_party/nix/src/libstore/remote-store.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/third_party/nix/src/libstore/remote-store.cc b/third_party/nix/src/libstore/remote-store.cc
index e99c442c3d67..c4fd856a2cb0 100644
--- a/third_party/nix/src/libstore/remote-store.cc
+++ b/third_party/nix/src/libstore/remote-store.cc
@@ -469,10 +469,9 @@ absl::Status RemoteStore::buildPaths(std::ostream& /* log_sink */,
     conn->to << drvPaths;
     if (GET_PROTOCOL_MINOR(conn->daemonVersion) >= 15) {
       conn->to << build_mode;
-    } else
-        /* Old daemons did not take a 'buildMode' parameter, so we
-           need to validate it here on the client side.  */
-        if (build_mode != bmNormal) {
+    } else if (build_mode != bmNormal) {
+      /* Old daemons did not take a 'buildMode' parameter, so we
+         need to validate it here on the client side.  */
       return absl::Status(
           absl::StatusCode::kInvalidArgument,
           "repairing or checking is not supported when building through the "