diff options
| author | Jeff King <peff@peff.net> | 2024-06-14 06:42:03 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-06-14 09:34:39 -0700 |
| commit | aecd794fca275b42e271b80236e95f0d288bd709 (patch) | |
| tree | 109cc0ab15551b45c7a98780c9d0b1da8db99572 /t/helper/test-bundle-uri.c | |
| parent | ffce821880408768be21e08a02fecd686e780d01 (diff) | |
| download | git-aecd794fca275b42e271b80236e95f0d288bd709.tar.gz | |
remote: drop checks for zero-url case
Now that the previous commit removed the possibility that a "struct
remote" will ever have zero url fields, we can drop a number of
redundant checks and untriggerable code paths.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-bundle-uri.c')
| -rw-r--r-- | t/helper/test-bundle-uri.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/t/helper/test-bundle-uri.c b/t/helper/test-bundle-uri.c index 3285dd962e..0c5fa723d8 100644 --- a/t/helper/test-bundle-uri.c +++ b/t/helper/test-bundle-uri.c @@ -88,8 +88,6 @@ static int cmd_ls_remote(int argc, const char **argv) die(_("bad repository '%s'"), dest); die(_("no remote configured to get bundle URIs from")); } - if (!remote->url.nr) - die(_("remote '%s' has no configured URL"), dest); transport = transport_get(remote, NULL); if (transport_get_remote_bundle_uri(transport) < 0) { |
