From 0aff4c256c774ab9becb23ce7bbe0a8452eb0372 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Mon, 3 Aug 2020 20:33:59 -0400 Subject: fix(3p/nix): Don't assert on argc count for build-remote This executable doesn't appear to ever actually look at argv, so throwing an error if argc is wrong seems kinda silly. Change-Id: Iabc9dad785d4c99be9e8fd4ecd954d38b876cecd Reviewed-on: https://cl.tvl.fyi/c/depot/+/1633 Tested-by: BuildkiteCI Reviewed-by: tazjin --- third_party/nix/src/build-remote/build-remote.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'third_party/nix/src') diff --git a/third_party/nix/src/build-remote/build-remote.cc b/third_party/nix/src/build-remote/build-remote.cc index 0aeadd0510d2..60878e2e6eb8 100644 --- a/third_party/nix/src/build-remote/build-remote.cc +++ b/third_party/nix/src/build-remote/build-remote.cc @@ -53,10 +53,6 @@ static int _main(int argc, char* argv[]) { unsetenv("DISPLAY"); unsetenv("SSH_ASKPASS"); - if (argc != 2) { - throw UsageError("called without required arguments"); - } - FdSource source(STDIN_FILENO); /* Read the parent's settings. */ -- cgit 1.4.1